#include <gmlib/number/internal/mpz_x64.h>
#if defined(NUMBER_IMPL_MPZ_X64)
#include <stdexcept>
#include <cstring>

using namespace number::internal::x64;

void test_mpz_x64_sub_borrow()
{
    uint64_t    minuend[4], subtrahend[4], sum[4];
    int          borrow;
    std::uint8_t differencedata[32];

    static std::uint8_t minuend0[32]    = {0x8c,0xfa,0xbb,0x0f,0x8a,0x05,0xde,0x11,0xc5,0x2d,0x65,0x78,0x6d,0xe9,0xda,0x57,0x40,0xfe,0x3c,0x2b,0x3f,0x80,0x3b,0x4f,0x74,0x0b,0x2d,0xbf,0x68,0xfe,0xb6,0x79};
    static std::uint8_t subtrahend0[32] = {0x94,0xea,0xec,0x78,0xb1,0xb4,0x90,0xf4,0x80,0x8e,0x50,0x95,0x42,0xcb,0x2e,0x50,0x1f,0x7d,0x76,0x49,0xc0,0x18,0x24,0x5e,0x81,0x11,0xbe,0x66,0xdf,0x9c,0x33,0x16};
    static std::uint8_t sum0[32]        = {0xf8,0x0f,0xce,0x96,0xd8,0x51,0x4d,0x1d,0x44,0x9f,0x14,0xe3,0x2b,0x1e,0xac,0x07,0x21,0x80,0xc5,0xe1,0x7f,0x68,0x16,0xf0,0xf2,0xf9,0x6f,0x58,0x89,0x62,0x83,0x63};
    static int          borrow0         = -1;
    mpz_from_bytes(minuend, minuend0, 4);
    mpz_from_bytes(subtrahend, subtrahend0, 4);
    borrow = mpz_sub_borrow(sum, minuend, subtrahend, 0, 4);
    mpz_to_bytes(differencedata, sum, 4);
    if (std::memcmp(sum0, differencedata, 32) != 0 || borrow0 != borrow)
    {
        throw std::runtime_error("err in x64::mpz_sub_borrow");
    }

    static std::uint8_t minuend1[32]    = {0x95,0x95,0x3b,0x21,0x4a,0x85,0x59,0x7f,0x65,0x15,0xca,0x1c,0x05,0xb9,0x7b,0x96,0xa1,0xea,0x80,0xcc,0x10,0xfa,0x8b,0x05,0x2d,0x6e,0xca,0xb0,0xc0,0x19,0x93,0x38};
    static std::uint8_t subtrahend1[32] = {0x49,0x66,0x78,0x1c,0x49,0xbb,0x0a,0x58,0xbb,0xa4,0xa1,0xfa,0x32,0x0d,0x97,0x08,0xff,0x79,0xf5,0xe6,0x99,0x4e,0x35,0xdd,0x9b,0xad,0x82,0x47,0x1a,0x63,0x68,0x13};
    static std::uint8_t sum1[32]        = {0x4c,0x2e,0xc3,0x05,0x00,0xca,0x4f,0x26,0xa9,0x71,0x28,0x21,0xd3,0xab,0xe4,0x8d,0xa2,0x70,0x8a,0xe5,0x77,0xac,0x55,0x27,0x91,0xc1,0x48,0x69,0xa5,0xb6,0x2b,0x25};
    static int          borrow1         = 0;
    mpz_from_bytes(minuend, minuend1, 4);
    mpz_from_bytes(subtrahend, subtrahend1, 4);
    borrow = mpz_sub_borrow(sum, minuend, subtrahend, 0, 4);
    mpz_to_bytes(differencedata, sum, 4);
    if (std::memcmp(sum1, differencedata, 32) != 0 || borrow1 != borrow)
    {
        throw std::runtime_error("err in x64::mpz_sub_borrow");
    }

    static std::uint8_t minuend2[32]    = {0xc2,0xf8,0x41,0x13,0xdb,0x61,0xb4,0x3c,0x64,0x4d,0xf4,0x2c,0xb9,0x4f,0x27,0x48,0x63,0x1d,0x09,0xac,0x03,0xf5,0x26,0xbd,0x5f,0x4c,0xb4,0x81,0x85,0xd8,0xba,0x4f};
    static std::uint8_t subtrahend2[32] = {0xa4,0x4c,0x08,0x3c,0x74,0x92,0x6f,0x8b,0x10,0x0d,0x53,0x7a,0x9d,0xb3,0x8f,0x11,0x9f,0x12,0x44,0x98,0xf4,0x1a,0xa0,0xf3,0x3b,0x44,0x3c,0x93,0x9f,0xe5,0x3b,0x7d};
    static std::uint8_t sum2[32]        = {0x1e,0xac,0x38,0xd7,0x66,0xcf,0x44,0xb1,0x54,0x40,0xa0,0xb2,0x1b,0x9b,0x98,0x36,0xc4,0x0a,0xc5,0x13,0x0f,0xda,0x85,0xca,0x24,0x08,0x77,0xed,0xe5,0xf3,0x7e,0xd2};
    static int          borrow2         = 0;
    mpz_from_bytes(minuend, minuend2, 4);
    mpz_from_bytes(subtrahend, subtrahend2, 4);
    borrow = mpz_sub_borrow(sum, minuend, subtrahend, 0, 4);
    mpz_to_bytes(differencedata, sum, 4);
    if (std::memcmp(sum2, differencedata, 32) != 0 || borrow2 != borrow)
    {
        throw std::runtime_error("err in x64::mpz_sub_borrow");
    }

    static std::uint8_t minuend3[32]    = {0x68,0x61,0x8d,0xd5,0x34,0x8e,0x49,0x0c,0x62,0x34,0x89,0x25,0xb1,0x97,0xd7,0xf8,0x8a,0xfc,0xeb,0xdb,0x07,0xf5,0x08,0xc4,0x98,0xcf,0xd6,0x6d,0x89,0xed,0x08,0xba};
    static std::uint8_t subtrahend3[32] = {0x72,0x31,0xfa,0xbf,0x1a,0xf8,0x31,0xb4,0x1f,0x13,0x90,0xcf,0xe1,0x47,0x8b,0xb5,0x67,0x4c,0x8b,0x74,0x79,0xa6,0x80,0xc3,0x28,0x44,0xf0,0x56,0x8e,0x64,0x86,0x88};
    static std::uint8_t sum3[32]        = {0xf6,0x2f,0x93,0x16,0x19,0x96,0x17,0x58,0x43,0x20,0xf8,0x55,0xd0,0x50,0x4c,0x43,0x23,0xb0,0x60,0x66,0x8e,0x4e,0x88,0x01,0x70,0x8a,0xe6,0x16,0xfb,0x88,0x82,0x32};
    static int          borrow3         = -1;
    mpz_from_bytes(minuend, minuend3, 4);
    mpz_from_bytes(subtrahend, subtrahend3, 4);
    borrow = mpz_sub_borrow(sum, minuend, subtrahend, 0, 4);
    mpz_to_bytes(differencedata, sum, 4);
    if (std::memcmp(sum3, differencedata, 32) != 0 || borrow3 != borrow)
    {
        throw std::runtime_error("err in x64::mpz_sub_borrow");
    }

    static std::uint8_t minuend4[32]    = {0xbf,0x2f,0x26,0x1e,0x12,0x3c,0xc5,0x72,0x98,0x00,0xf6,0xa4,0x83,0x5e,0xd9,0x40,0x2c,0x56,0xc3,0x7b,0x1a,0x41,0xc0,0x78,0xe0,0x46,0x98,0xa8,0x02,0x7c,0x90,0x89};
    static std::uint8_t subtrahend4[32] = {0xd8,0xff,0x3f,0x51,0xe8,0x6b,0x91,0x07,0x3e,0x6c,0x86,0x6a,0x47,0x38,0xa3,0x35,0x95,0xdb,0x83,0x74,0x8b,0x42,0xfe,0xb7,0x25,0xc6,0x7b,0xdf,0x1a,0xba,0xb5,0x05};
    static std::uint8_t sum4[32]        = {0xe6,0x2f,0xe6,0xcc,0x29,0xd1,0x34,0x6b,0x59,0x94,0x70,0x3a,0x3c,0x26,0x36,0x0a,0x96,0x7b,0x40,0x06,0x8e,0xfe,0xc1,0xc1,0xba,0x80,0x1c,0xc8,0xe7,0xc1,0xdb,0x84};
    static int          borrow4         = -1;
    mpz_from_bytes(minuend, minuend4, 4);
    mpz_from_bytes(subtrahend, subtrahend4, 4);
    borrow = mpz_sub_borrow(sum, minuend, subtrahend, 0, 4);
    mpz_to_bytes(differencedata, sum, 4);
    if (std::memcmp(sum4, differencedata, 32) != 0 || borrow4 != borrow)
    {
        throw std::runtime_error("err in x64::mpz_sub_borrow");
    }

    static std::uint8_t minuend5[32]    = {0xf3,0x9f,0xd8,0x1a,0x14,0xab,0xb0,0x80,0xd7,0x8d,0xab,0x05,0xf0,0xb6,0x3f,0x0e,0x42,0xd7,0x1b,0x3d,0x9e,0x27,0x92,0xc9,0xbe,0x8d,0x5d,0x09,0xf1,0x29,0x81,0xfe};
    static std::uint8_t subtrahend5[32] = {0x4c,0xe7,0xa2,0x48,0x6c,0x2c,0x8f,0x81,0x9d,0x45,0xc7,0xc6,0xce,0xa5,0xa3,0x50,0x06,0xcb,0x37,0xd9,0x4c,0x43,0x03,0x90,0x5d,0x6d,0x1a,0x7b,0xfb,0xe6,0x8d,0x7e};
    static std::uint8_t sum5[32]        = {0xa6,0xb8,0x35,0xd1,0xa8,0x7f,0x20,0xff,0x3a,0x47,0xe3,0x3f,0x22,0x10,0x9b,0xbe,0x3c,0x0b,0xe3,0x64,0x51,0xe4,0x8f,0x39,0x61,0x20,0x42,0x8d,0xf5,0x42,0xf4,0x80};
    static int          borrow5         = 0;
    mpz_from_bytes(minuend, minuend5, 4);
    mpz_from_bytes(subtrahend, subtrahend5, 4);
    borrow = mpz_sub_borrow(sum, minuend, subtrahend, 0, 4);
    mpz_to_bytes(differencedata, sum, 4);
    if (std::memcmp(sum5, differencedata, 32) != 0 || borrow5 != borrow)
    {
        throw std::runtime_error("err in x64::mpz_sub_borrow");
    }

    static std::uint8_t minuend6[32]    = {0xc1,0x41,0x0e,0x45,0x45,0x63,0xad,0x8a,0xa1,0xce,0x75,0x73,0xa4,0xa3,0x01,0xed,0x8a,0x1d,0xad,0x54,0x1d,0xd9,0x76,0x19,0x1f,0xb4,0x88,0xfb,0x41,0x23,0x26,0x87};
    static std::uint8_t subtrahend6[32] = {0x96,0x27,0xf3,0xfb,0xd1,0x03,0xd6,0xee,0x10,0xdf,0x7a,0xe9,0xcc,0xec,0x8c,0x38,0x6a,0xd4,0x6a,0xfd,0x97,0xf9,0x19,0xfe,0x9a,0xfa,0xdf,0xa3,0x97,0x7a,0xec,0x77};
    static std::uint8_t sum6[32]        = {0x2b,0x19,0x1a,0x49,0x74,0x5f,0xd6,0x9c,0x90,0xee,0xfa,0x89,0xd7,0xb6,0x75,0xb5,0x1f,0x49,0x42,0x56,0x85,0xe0,0x5c,0x1a,0x84,0xb9,0xa9,0x57,0xa9,0xa8,0x3a,0x10};
    static int          borrow6         = 0;
    mpz_from_bytes(minuend, minuend6, 4);
    mpz_from_bytes(subtrahend, subtrahend6, 4);
    borrow = mpz_sub_borrow(sum, minuend, subtrahend, 0, 4);
    mpz_to_bytes(differencedata, sum, 4);
    if (std::memcmp(sum6, differencedata, 32) != 0 || borrow6 != borrow)
    {
        throw std::runtime_error("err in x64::mpz_sub_borrow");
    }

    static std::uint8_t minuend7[32]    = {0xe9,0x8f,0xca,0x95,0x7e,0x42,0xbd,0x30,0xf8,0x9e,0x90,0xa6,0xb5,0x2f,0x57,0x4a,0x83,0xff,0xb4,0x85,0x01,0xde,0xf9,0xd0,0x25,0x27,0xfb,0x96,0xd9,0x82,0x20,0x0d};
    static std::uint8_t subtrahend7[32] = {0x04,0x48,0x63,0xc0,0x75,0xfd,0xff,0x12,0x12,0xf3,0x5e,0x9b,0xba,0x9d,0xa7,0x66,0x84,0xfa,0x51,0xc4,0xfb,0x4e,0x1b,0x76,0x5e,0x9c,0xfb,0xca,0xa7,0x99,0x59,0xbe};
    static std::uint8_t sum7[32]        = {0xe5,0x47,0x66,0xd5,0x08,0x44,0xbe,0x1e,0xe5,0xab,0x32,0x0a,0xfa,0x91,0xaf,0xe3,0xff,0x05,0x62,0xc0,0x06,0x90,0xde,0x59,0xc6,0x8a,0xff,0xcc,0x31,0xe8,0xc6,0x4f};
    static int          borrow7         = 0;
    mpz_from_bytes(minuend, minuend7, 4);
    mpz_from_bytes(subtrahend, subtrahend7, 4);
    borrow = mpz_sub_borrow(sum, minuend, subtrahend, 0, 4);
    mpz_to_bytes(differencedata, sum, 4);
    if (std::memcmp(sum7, differencedata, 32) != 0 || borrow7 != borrow)
    {
        throw std::runtime_error("err in x64::mpz_sub_borrow");
    }

    static std::uint8_t minuend8[32]    = {0x29,0x34,0xe9,0xd6,0x7b,0xb4,0x52,0x29,0xb6,0x0e,0x01,0x1c,0xf9,0xed,0x88,0x6f,0xae,0xdf,0x53,0xe6,0x7b,0xd1,0x01,0x83,0x36,0x29,0xb6,0x11,0x83,0x6b,0xec,0xe2};
    static std::uint8_t subtrahend8[32] = {0x06,0x35,0xc2,0x82,0x9c,0x33,0xba,0xd9,0xdf,0xb2,0xef,0x55,0xb1,0x80,0xd9,0x38,0x3d,0xb9,0x08,0x10,0xa9,0xa9,0xf1,0x14,0x32,0x88,0x1a,0x04,0xdd,0xd0,0x8a,0x94};
    static std::uint8_t sum8[32]        = {0x22,0xff,0x27,0x53,0xdf,0x80,0x97,0x4f,0xd6,0x5b,0x11,0xc7,0x48,0x6c,0xaf,0x37,0x71,0x26,0x4b,0xd5,0xd2,0x27,0x10,0x6f,0x03,0xa1,0x9c,0x0c,0xa5,0x9b,0x62,0x4e};
    static int          borrow8         = 0;
    mpz_from_bytes(minuend, minuend8, 4);
    mpz_from_bytes(subtrahend, subtrahend8, 4);
    borrow = mpz_sub_borrow(sum, minuend, subtrahend, 0, 4);
    mpz_to_bytes(differencedata, sum, 4);
    if (std::memcmp(sum8, differencedata, 32) != 0 || borrow8 != borrow)
    {
        throw std::runtime_error("err in x64::mpz_sub_borrow");
    }

    static std::uint8_t minuend9[32]    = {0x2e,0x4d,0x73,0x7e,0xa0,0x44,0xaf,0x27,0x05,0xde,0x5e,0x26,0x55,0x99,0x85,0xc6,0x27,0xf6,0xba,0x60,0xe6,0xb5,0xb0,0x35,0x96,0x41,0x40,0x0f,0x6c,0xa7,0x84,0x7e};
    static std::uint8_t subtrahend9[32] = {0x75,0x3c,0xaa,0x35,0x72,0x56,0x5e,0xcb,0x1f,0x2f,0x8c,0x11,0xea,0xa2,0x88,0x6c,0x06,0x7b,0xd8,0x8c,0x35,0x0d,0x9a,0x85,0xd7,0x76,0x71,0x83,0xc5,0x67,0xdd,0xb8};
    static std::uint8_t sum9[32]        = {0xb9,0x10,0xc9,0x49,0x2d,0xee,0x50,0x5b,0xe6,0xae,0xd2,0x14,0x6a,0xf6,0xfd,0x5a,0x21,0x7a,0xe1,0xd4,0xb1,0xa8,0x15,0xaf,0xbe,0xca,0xce,0x8b,0xa7,0x3f,0xa6,0xc6};
    static int          borrow9         = -1;
    mpz_from_bytes(minuend, minuend9, 4);
    mpz_from_bytes(subtrahend, subtrahend9, 4);
    borrow = mpz_sub_borrow(sum, minuend, subtrahend, 0, 4);
    mpz_to_bytes(differencedata, sum, 4);
    if (std::memcmp(sum9, differencedata, 32) != 0 || borrow9 != borrow)
    {
        throw std::runtime_error("err in x64::mpz_sub_borrow");
    }

    static std::uint8_t minuend10[32]    = {0x26,0xf7,0x65,0x42,0xad,0xec,0x7d,0x5f,0x36,0xd7,0x7a,0x01,0xad,0xc5,0x07,0xaf,0xbc,0xda,0xa8,0x62,0x81,0x51,0x4f,0xb7,0xf9,0xad,0x33,0xa3,0x1b,0x80,0x0b,0xd7};
    static std::uint8_t subtrahend10[32] = {0x4c,0xb6,0xb3,0x40,0x8e,0x0b,0xa4,0x7d,0x25,0x3c,0xdb,0xe5,0xa4,0x09,0x60,0xba,0x82,0x46,0xe8,0xe5,0x58,0xa1,0x39,0xc7,0x05,0x81,0x1d,0xb7,0x8c,0x6c,0x49,0x26};
    static std::uint8_t sum10[32]        = {0xda,0x40,0xb2,0x02,0x1f,0xe0,0xd8,0xe2,0x11,0x9a,0x9e,0x1c,0x09,0xbb,0xa6,0xf5,0x3a,0x93,0xbf,0x7d,0x28,0xb0,0x15,0xf0,0xf4,0x2c,0x15,0xeb,0x8f,0x13,0xc2,0xb1};
    static int          borrow10         = -1;
    mpz_from_bytes(minuend, minuend10, 4);
    mpz_from_bytes(subtrahend, subtrahend10, 4);
    borrow = mpz_sub_borrow(sum, minuend, subtrahend, 0, 4);
    mpz_to_bytes(differencedata, sum, 4);
    if (std::memcmp(sum10, differencedata, 32) != 0 || borrow10 != borrow)
    {
        throw std::runtime_error("err in x64::mpz_sub_borrow");
    }

    static std::uint8_t minuend11[32]    = {0x02,0x64,0xf3,0x6a,0x46,0x07,0xa1,0x2e,0x90,0xaa,0x44,0xb3,0xf0,0x7d,0x95,0x12,0xa9,0x4c,0xa4,0x1c,0xbe,0x95,0x08,0xd5,0x07,0x84,0x4a,0x4c,0x8c,0xf1,0xfc,0x1e};
    static std::uint8_t subtrahend11[32] = {0x94,0x28,0xe9,0xde,0xa3,0xe2,0xf2,0x45,0xea,0xfe,0x24,0x6f,0x17,0x2a,0x81,0xeb,0x46,0x7c,0x48,0x06,0x49,0x9c,0x72,0x51,0x6e,0x92,0xaa,0x94,0x6b,0xb0,0x8d,0x05};
    static std::uint8_t sum11[32]        = {0x6e,0x3c,0x09,0x8b,0xa2,0x24,0xae,0xe8,0xa5,0xac,0x20,0x44,0xd9,0x53,0x13,0x27,0x62,0xd0,0x5c,0x16,0x74,0xf8,0x96,0x83,0x98,0xf1,0x9f,0xb8,0x21,0x41,0x6f,0x19};
    static int          borrow11         = -1;
    mpz_from_bytes(minuend, minuend11, 4);
    mpz_from_bytes(subtrahend, subtrahend11, 4);
    borrow = mpz_sub_borrow(sum, minuend, subtrahend, 0, 4);
    mpz_to_bytes(differencedata, sum, 4);
    if (std::memcmp(sum11, differencedata, 32) != 0 || borrow11 != borrow)
    {
        throw std::runtime_error("err in x64::mpz_sub_borrow");
    }

    static std::uint8_t minuend12[32]    = {0x87,0x1e,0xcd,0xae,0x07,0x77,0xf9,0xeb,0xc6,0xc5,0xd3,0x27,0x7d,0x6c,0xab,0x55,0xf5,0x26,0xe3,0xbc,0x1e,0x44,0x71,0xae,0x4f,0xe2,0x83,0xa4,0x41,0xd8,0xc6,0xaa};
    static std::uint8_t subtrahend12[32] = {0x22,0xb8,0x83,0x38,0xc4,0xd7,0x67,0x08,0x14,0x6b,0x81,0x66,0xc2,0x15,0x2e,0x05,0xb6,0xdd,0x47,0x7c,0x12,0x32,0xed,0x8d,0x35,0x53,0xb9,0xbe,0x7c,0x1e,0xbb,0x82};
    static std::uint8_t sum12[32]        = {0x64,0x66,0x4a,0x75,0x42,0xa0,0x92,0xe3,0xb2,0x5a,0x51,0xc0,0xbb,0x57,0x7d,0x50,0x3e,0x49,0x9c,0x40,0x0c,0x11,0x84,0x21,0x1a,0x8e,0xc9,0xe5,0xc5,0xba,0x0b,0x28};
    static int          borrow12         = 0;
    mpz_from_bytes(minuend, minuend12, 4);
    mpz_from_bytes(subtrahend, subtrahend12, 4);
    borrow = mpz_sub_borrow(sum, minuend, subtrahend, 0, 4);
    mpz_to_bytes(differencedata, sum, 4);
    if (std::memcmp(sum12, differencedata, 32) != 0 || borrow12 != borrow)
    {
        throw std::runtime_error("err in x64::mpz_sub_borrow");
    }

    static std::uint8_t minuend13[32]    = {0x91,0x43,0x4f,0xf8,0x09,0xe7,0x33,0xac,0x8b,0xcc,0x54,0xa7,0xcf,0x40,0x4c,0xf4,0xa6,0x72,0xdc,0x80,0xbe,0xf0,0x88,0xc4,0x02,0x94,0xc5,0x3b,0x86,0xf7,0x51,0xa8};
    static std::uint8_t subtrahend13[32] = {0xb7,0xbc,0xab,0xb6,0xa5,0x1f,0x35,0x8f,0x5d,0x13,0x9c,0xf2,0xc2,0xca,0x90,0x4b,0x26,0x33,0xbd,0x04,0x6e,0xbb,0x13,0x91,0x20,0x53,0x82,0x15,0x8e,0xcb,0x42,0x1a};
    static std::uint8_t sum13[32]        = {0xd9,0x86,0xa4,0x41,0x64,0xc7,0xfe,0x1d,0x2e,0xb8,0xb7,0xb5,0x0c,0x75,0xbc,0xa9,0x80,0x3f,0x1f,0x7c,0x50,0x35,0x75,0x32,0xe2,0x41,0x43,0x25,0xf8,0x2c,0x0f,0x8e};
    static int          borrow13         = -1;
    mpz_from_bytes(minuend, minuend13, 4);
    mpz_from_bytes(subtrahend, subtrahend13, 4);
    borrow = mpz_sub_borrow(sum, minuend, subtrahend, 0, 4);
    mpz_to_bytes(differencedata, sum, 4);
    if (std::memcmp(sum13, differencedata, 32) != 0 || borrow13 != borrow)
    {
        throw std::runtime_error("err in x64::mpz_sub_borrow");
    }

    static std::uint8_t minuend14[32]    = {0xef,0xfe,0x7b,0xa6,0xe8,0xbe,0x09,0x4b,0x67,0x43,0x51,0x53,0x19,0xd9,0x5d,0x65,0x94,0x15,0x4a,0x5c,0xe7,0x38,0x9d,0x07,0xd0,0x07,0x23,0x68,0x52,0x24,0x6e,0xcf};
    static std::uint8_t subtrahend14[32] = {0x86,0x51,0x5b,0x10,0x88,0x63,0x19,0x82,0xa8,0x41,0x11,0x48,0x91,0xfc,0x20,0xca,0x4d,0x8a,0xbb,0x55,0x0a,0xd1,0x84,0xc8,0xe8,0xef,0x52,0x6c,0xfb,0x09,0xb8,0xa3};
    static std::uint8_t sum14[32]        = {0x69,0xad,0x20,0x96,0x60,0x5a,0xef,0xc8,0xbf,0x02,0x40,0x0a,0x87,0xdd,0x3c,0x9b,0x46,0x8a,0x8f,0x07,0xdc,0x67,0x18,0x3e,0xe7,0x17,0xd0,0xfb,0x57,0x1a,0xb6,0x2c};
    static int          borrow14         = 0;
    mpz_from_bytes(minuend, minuend14, 4);
    mpz_from_bytes(subtrahend, subtrahend14, 4);
    borrow = mpz_sub_borrow(sum, minuend, subtrahend, 0, 4);
    mpz_to_bytes(differencedata, sum, 4);
    if (std::memcmp(sum14, differencedata, 32) != 0 || borrow14 != borrow)
    {
        throw std::runtime_error("err in x64::mpz_sub_borrow");
    }

    static std::uint8_t minuend15[32]    = {0xb1,0xc4,0x63,0xc1,0x30,0x2d,0xd1,0x38,0x81,0xdc,0x4f,0x6b,0xcb,0xfe,0x0c,0xc9,0xe5,0xf6,0xf2,0xe1,0x57,0x9b,0x2b,0x03,0xc9,0x6b,0xcd,0x7d,0xea,0xbb,0x0f,0x17};
    static std::uint8_t subtrahend15[32] = {0x89,0xde,0x33,0x82,0x40,0x2b,0x4a,0xcc,0x39,0xd1,0x66,0x88,0x65,0x60,0x5e,0x90,0x8a,0x60,0x69,0x8e,0xb5,0xbe,0xfb,0x05,0x21,0xb4,0xe0,0x0e,0xea,0x86,0x43,0xf0};
    static std::uint8_t sum15[32]        = {0x27,0xe6,0x30,0x3e,0xf0,0x02,0x86,0x6c,0x48,0x0a,0xe8,0xe3,0x66,0x9d,0xae,0x39,0x5b,0x96,0x89,0x52,0xa1,0xdc,0x2f,0xfe,0xa7,0xb6,0xed,0x6f,0x00,0x34,0xcb,0x27};
    static int          borrow15         = 0;
    mpz_from_bytes(minuend, minuend15, 4);
    mpz_from_bytes(subtrahend, subtrahend15, 4);
    borrow = mpz_sub_borrow(sum, minuend, subtrahend, 0, 4);
    mpz_to_bytes(differencedata, sum, 4);
    if (std::memcmp(sum15, differencedata, 32) != 0 || borrow15 != borrow)
    {
        throw std::runtime_error("err in x64::mpz_sub_borrow");
    }

    static std::uint8_t minuend16[32]    = {0x4b,0xa2,0x24,0xb5,0xd8,0xdd,0x8e,0x38,0xbe,0x79,0x49,0xf8,0x8c,0xc3,0x27,0xb0,0x72,0xcc,0x3c,0xf2,0xa8,0x2b,0x37,0xb5,0xcc,0x7a,0x1c,0x8d,0xea,0xbc,0xe9,0x7b};
    static std::uint8_t subtrahend16[32] = {0x7f,0x89,0x18,0xd9,0xa1,0x3b,0x7b,0xb6,0x68,0x07,0x7b,0xc3,0xe4,0x2f,0x7b,0x4c,0x17,0xd9,0x4e,0x31,0xbe,0xa6,0x74,0x50,0xd8,0x74,0x16,0x56,0x22,0x85,0x47,0x52};
    static std::uint8_t sum16[32]        = {0xcc,0x19,0x0b,0xdc,0x37,0xa2,0x12,0x82,0x56,0x71,0xce,0x34,0xa8,0x93,0xac,0x64,0x5a,0xf2,0xee,0xc0,0xe9,0x84,0xc3,0x64,0xf4,0x06,0x06,0x37,0xc8,0x37,0xa2,0x29};
    static int          borrow16         = -1;
    mpz_from_bytes(minuend, minuend16, 4);
    mpz_from_bytes(subtrahend, subtrahend16, 4);
    borrow = mpz_sub_borrow(sum, minuend, subtrahend, 0, 4);
    mpz_to_bytes(differencedata, sum, 4);
    if (std::memcmp(sum16, differencedata, 32) != 0 || borrow16 != borrow)
    {
        throw std::runtime_error("err in x64::mpz_sub_borrow");
    }

    static std::uint8_t minuend17[32]    = {0xc6,0x87,0x15,0x07,0x8d,0xc1,0xe7,0x85,0x26,0x33,0x00,0x92,0x7e,0x46,0x2d,0xf1,0xac,0x58,0x63,0xf7,0x77,0x7c,0xe3,0x4b,0xf6,0x80,0xdb,0x2f,0x8c,0x4e,0x56,0x90};
    static std::uint8_t subtrahend17[32] = {0xd5,0x06,0x80,0x7a,0x7a,0xf0,0xa2,0xfb,0x0c,0xbb,0x3b,0x77,0x33,0xca,0xbc,0xfc,0x37,0x5e,0x99,0x90,0x5d,0x8b,0xbf,0xc4,0xde,0x77,0xd1,0xf3,0xea,0x1c,0xb0,0x45};
    static std::uint8_t sum17[32]        = {0xf1,0x80,0x94,0x8d,0x12,0xd1,0x44,0x8a,0x19,0x77,0xc5,0x1b,0x4a,0x7b,0x70,0xf5,0x74,0xf9,0xca,0x67,0x19,0xf1,0x23,0x87,0x18,0x09,0x09,0x3b,0xa2,0x31,0xa6,0x4b};
    static int          borrow17         = -1;
    mpz_from_bytes(minuend, minuend17, 4);
    mpz_from_bytes(subtrahend, subtrahend17, 4);
    borrow = mpz_sub_borrow(sum, minuend, subtrahend, 0, 4);
    mpz_to_bytes(differencedata, sum, 4);
    if (std::memcmp(sum17, differencedata, 32) != 0 || borrow17 != borrow)
    {
        throw std::runtime_error("err in x64::mpz_sub_borrow");
    }

    static std::uint8_t minuend18[32]    = {0x25,0xfe,0x72,0xc1,0xc6,0xe8,0x3a,0x6e,0x17,0x58,0x39,0xc4,0xf2,0x65,0xf7,0x82,0x15,0x9a,0x82,0x6f,0xd1,0x7f,0x16,0x5e,0x13,0x3d,0xe1,0xca,0xb1,0x22,0xc8,0x70};
    static std::uint8_t subtrahend18[32] = {0x76,0x25,0x46,0xc2,0x52,0x40,0x63,0xc8,0x2f,0xe7,0xec,0xb1,0xfa,0xa9,0x1a,0x43,0x29,0xc6,0x57,0x19,0xb3,0xa2,0xfb,0x4a,0x10,0x40,0x0b,0x6e,0x45,0x91,0x8c,0xc9};
    static std::uint8_t sum18[32]        = {0xaf,0xd9,0x2b,0xff,0x74,0xa7,0xd6,0xa5,0xe7,0x70,0x4d,0x12,0xf7,0xbc,0xdd,0x3e,0xeb,0xd4,0x2b,0x56,0x1d,0xdc,0x1b,0x14,0x02,0xfd,0xd6,0x5c,0x6b,0x91,0x3b,0xa7};
    static int          borrow18         = -1;
    mpz_from_bytes(minuend, minuend18, 4);
    mpz_from_bytes(subtrahend, subtrahend18, 4);
    borrow = mpz_sub_borrow(sum, minuend, subtrahend, 0, 4);
    mpz_to_bytes(differencedata, sum, 4);
    if (std::memcmp(sum18, differencedata, 32) != 0 || borrow18 != borrow)
    {
        throw std::runtime_error("err in x64::mpz_sub_borrow");
    }

    static std::uint8_t minuend19[32]    = {0x95,0xdc,0x9f,0xc1,0x04,0xac,0x5f,0x20,0xb8,0xd6,0x7a,0x5a,0x6f,0x1e,0xec,0x4e,0xf4,0xa3,0x45,0x26,0x6c,0x8d,0x69,0x9c,0x29,0x83,0xa6,0x65,0x02,0x17,0xb4,0x8e};
    static std::uint8_t subtrahend19[32] = {0xe3,0x36,0xcf,0xe6,0x33,0x94,0x21,0x8d,0x6e,0xc2,0xbe,0x09,0xc2,0x1a,0x16,0xf7,0xf2,0x37,0x25,0xca,0xfd,0x2f,0x5b,0xd9,0xff,0x40,0x1e,0x9a,0xef,0x3f,0x55,0x1f};
    static std::uint8_t sum19[32]        = {0xb2,0xa5,0xcf,0xda,0xd1,0x18,0x3d,0x93,0x4a,0x13,0xbc,0x50,0xad,0x04,0xd5,0x57,0x02,0x6c,0x1f,0x5b,0x6f,0x5e,0x0d,0xc2,0x2a,0x43,0x87,0xca,0x12,0xd8,0x5f,0x6f};
    static int          borrow19         = -1;
    mpz_from_bytes(minuend, minuend19, 4);
    mpz_from_bytes(subtrahend, subtrahend19, 4);
    borrow = mpz_sub_borrow(sum, minuend, subtrahend, 0, 4);
    mpz_to_bytes(differencedata, sum, 4);
    if (std::memcmp(sum19, differencedata, 32) != 0 || borrow19 != borrow)
    {
        throw std::runtime_error("err in x64::mpz_sub_borrow");
    }

    static std::uint8_t minuend20[32]    = {0x8f,0x80,0x92,0xe6,0xaa,0xb1,0x17,0x74,0x4d,0xd6,0xde,0x8a,0xd8,0xe5,0x53,0x91,0x2c,0x42,0x0e,0x52,0xe7,0x4c,0xa8,0xac,0x98,0x05,0xfc,0x59,0x26,0xc3,0x39,0x6b};
    static std::uint8_t subtrahend20[32] = {0x7f,0xf5,0x21,0x0c,0x8d,0xba,0xdd,0x36,0x47,0xcf,0x48,0x7d,0x7e,0xec,0x46,0xd7,0x56,0x64,0x3d,0x7b,0x49,0x96,0xfe,0x6f,0x04,0x62,0xfd,0x55,0x83,0x3f,0x9f,0x78};
    static std::uint8_t sum20[32]        = {0x0f,0x8b,0x71,0xda,0x1c,0xf6,0x3a,0x3e,0x06,0x07,0x96,0x0d,0x59,0xf9,0x0c,0xb9,0xd5,0xdd,0xd0,0xd7,0x9d,0xb5,0xaa,0x3d,0x93,0xa2,0xff,0x03,0xa3,0x83,0x99,0xf3};
    static int          borrow20         = 0;
    mpz_from_bytes(minuend, minuend20, 4);
    mpz_from_bytes(subtrahend, subtrahend20, 4);
    borrow = mpz_sub_borrow(sum, minuend, subtrahend, 0, 4);
    mpz_to_bytes(differencedata, sum, 4);
    if (std::memcmp(sum20, differencedata, 32) != 0 || borrow20 != borrow)
    {
        throw std::runtime_error("err in x64::mpz_sub_borrow");
    }

    static std::uint8_t minuend21[32]    = {0xa8,0x38,0xb7,0x80,0x68,0xa7,0x97,0xd7,0xd1,0x30,0x22,0x74,0x13,0xf5,0x3b,0x7a,0x7e,0x7f,0xbb,0x46,0xe5,0x63,0xf5,0xae,0xa1,0xc8,0x3c,0x97,0xcc,0xf0,0xe7,0x64};
    static std::uint8_t subtrahend21[32] = {0xf1,0x40,0xa2,0xb0,0x1e,0x5c,0xfc,0x87,0xd5,0x9a,0xe5,0x6a,0x06,0x65,0x6b,0x88,0x46,0x71,0x95,0x4c,0x9d,0x07,0x92,0x28,0x6b,0x16,0x4e,0x5f,0x99,0x38,0x20,0x5c};
    static std::uint8_t sum21[32]        = {0xb6,0xf8,0x14,0xd0,0x4a,0x4a,0x9b,0x4f,0xfb,0x95,0x3d,0x0a,0x0d,0x8f,0xcf,0xf2,0x38,0x0e,0x25,0xfa,0x48,0x5c,0x63,0x86,0x36,0xb1,0xee,0x38,0x33,0xb8,0xc7,0x08};
    static int          borrow21         = -1;
    mpz_from_bytes(minuend, minuend21, 4);
    mpz_from_bytes(subtrahend, subtrahend21, 4);
    borrow = mpz_sub_borrow(sum, minuend, subtrahend, 0, 4);
    mpz_to_bytes(differencedata, sum, 4);
    if (std::memcmp(sum21, differencedata, 32) != 0 || borrow21 != borrow)
    {
        throw std::runtime_error("err in x64::mpz_sub_borrow");
    }

    static std::uint8_t minuend22[32]    = {0xfa,0x41,0xa4,0x11,0x44,0x3d,0x42,0xfe,0xcc,0xbb,0xc5,0x00,0x5f,0xe0,0x14,0x88,0x79,0x66,0xd9,0x98,0xe8,0x6f,0x8a,0x82,0x84,0x30,0x61,0x28,0x57,0xe3,0x31,0xdd};
    static std::uint8_t subtrahend22[32] = {0x0e,0x2e,0x9e,0x1e,0x45,0xea,0xad,0x8b,0xee,0x96,0x93,0xc9,0xd8,0x36,0x23,0x45,0x2d,0xfc,0x35,0xf4,0xf0,0x93,0xc2,0x8f,0x34,0xfc,0xde,0x28,0x56,0x35,0x0e,0xe8};
    static std::uint8_t sum22[32]        = {0xec,0x13,0x05,0xf2,0xfe,0x52,0x95,0x72,0xde,0x25,0x31,0x36,0x87,0xa9,0xf1,0x43,0x4b,0x6a,0xa3,0xa3,0xf7,0xdb,0xc7,0xf3,0x4f,0x33,0x83,0x00,0x01,0xae,0x22,0xf5};
    static int          borrow22         = 0;
    mpz_from_bytes(minuend, minuend22, 4);
    mpz_from_bytes(subtrahend, subtrahend22, 4);
    borrow = mpz_sub_borrow(sum, minuend, subtrahend, 0, 4);
    mpz_to_bytes(differencedata, sum, 4);
    if (std::memcmp(sum22, differencedata, 32) != 0 || borrow22 != borrow)
    {
        throw std::runtime_error("err in x64::mpz_sub_borrow");
    }

    static std::uint8_t minuend23[32]    = {0x07,0x4c,0xcb,0xaa,0xf5,0xed,0x4f,0x4c,0x1f,0x88,0x8e,0xfb,0xc3,0x79,0xfc,0x7a,0x36,0x71,0xb1,0x85,0x3b,0xc9,0xf4,0x7b,0x98,0x98,0xd1,0xfa,0x92,0x40,0xac,0x66};
    static std::uint8_t subtrahend23[32] = {0x46,0xab,0x02,0xee,0x10,0xde,0xb5,0x07,0x9d,0x00,0xe3,0xc1,0xe6,0x2f,0x94,0xed,0x52,0x14,0xf9,0x16,0xef,0x1c,0xd2,0x2c,0xb5,0x3b,0x2b,0x74,0x0c,0x9d,0x4e,0x79};
    static std::uint8_t sum23[32]        = {0xc0,0xa1,0xc8,0xbc,0xe5,0x0e,0x9a,0x44,0x82,0x87,0xab,0x39,0xdd,0x4a,0x67,0x8c,0xe4,0x5c,0xb8,0x6e,0x4c,0xad,0x22,0x4e,0xe3,0x5d,0xa6,0x86,0x85,0xa3,0x5d,0xed};
    static int          borrow23         = -1;
    mpz_from_bytes(minuend, minuend23, 4);
    mpz_from_bytes(subtrahend, subtrahend23, 4);
    borrow = mpz_sub_borrow(sum, minuend, subtrahend, 0, 4);
    mpz_to_bytes(differencedata, sum, 4);
    if (std::memcmp(sum23, differencedata, 32) != 0 || borrow23 != borrow)
    {
        throw std::runtime_error("err in x64::mpz_sub_borrow");
    }

    static std::uint8_t minuend24[32]    = {0x26,0xbf,0x1b,0xc9,0xfe,0x33,0x0c,0xcd,0xc6,0xd9,0xff,0x90,0x72,0xbd,0x6a,0xd3,0xfb,0x94,0xa2,0x04,0x6a,0x85,0xda,0xbb,0x92,0x4f,0xaa,0xc2,0xbb,0xf0,0x0f,0xd0};
    static std::uint8_t subtrahend24[32] = {0xa6,0xae,0xfc,0x5b,0x12,0x90,0x7b,0xc4,0x6f,0x1c,0x13,0x05,0xb6,0x63,0xcb,0xb9,0x52,0xac,0xd8,0x7f,0x73,0xe9,0x93,0x5c,0x6d,0x01,0xa3,0x8b,0x81,0x09,0x09,0xbb};
    static std::uint8_t sum24[32]        = {0x80,0x10,0x1f,0x6e,0xeb,0xa2,0x91,0x09,0x57,0xbd,0xec,0x8a,0xbc,0x59,0x9f,0x1a,0xa8,0xe7,0xc9,0x84,0xf6,0x9c,0x47,0x5f,0x25,0x4e,0x07,0x37,0x3a,0xe7,0x06,0x15};
    static int          borrow24         = -1;
    mpz_from_bytes(minuend, minuend24, 4);
    mpz_from_bytes(subtrahend, subtrahend24, 4);
    borrow = mpz_sub_borrow(sum, minuend, subtrahend, 0, 4);
    mpz_to_bytes(differencedata, sum, 4);
    if (std::memcmp(sum24, differencedata, 32) != 0 || borrow24 != borrow)
    {
        throw std::runtime_error("err in x64::mpz_sub_borrow");
    }

    static std::uint8_t minuend25[32]    = {0x3b,0xfb,0x08,0xa1,0x62,0x61,0xd4,0x3f,0x5a,0x0e,0x43,0xe2,0xb6,0xf0,0x1f,0x1f,0xa6,0x19,0x87,0xbf,0xcf,0x69,0x97,0xa0,0xe3,0x72,0x24,0x9b,0x6c,0x33,0x39,0x84};
    static std::uint8_t subtrahend25[32] = {0x45,0xaa,0x94,0x11,0x7f,0x44,0xed,0x9c,0x22,0x82,0xb2,0x12,0x19,0xbe,0xca,0xbd,0x61,0xfc,0xf7,0xa5,0x83,0x9a,0x83,0x7c,0x29,0x1d,0x88,0xcf,0x76,0x93,0xab,0xae};
    static std::uint8_t sum25[32]        = {0xf6,0x50,0x74,0x8f,0xe3,0x1c,0xe6,0xa3,0x37,0x8b,0x91,0xd0,0x9d,0x31,0x54,0x62,0x44,0x1c,0x90,0x1a,0x4b,0xcf,0x14,0x24,0xba,0x54,0x9b,0xcb,0xf5,0x9f,0x8d,0xd6};
    static int          borrow25         = -1;
    mpz_from_bytes(minuend, minuend25, 4);
    mpz_from_bytes(subtrahend, subtrahend25, 4);
    borrow = mpz_sub_borrow(sum, minuend, subtrahend, 0, 4);
    mpz_to_bytes(differencedata, sum, 4);
    if (std::memcmp(sum25, differencedata, 32) != 0 || borrow25 != borrow)
    {
        throw std::runtime_error("err in x64::mpz_sub_borrow");
    }

    static std::uint8_t minuend26[32]    = {0x79,0xab,0xbd,0x15,0x21,0x80,0x3d,0xa3,0xef,0x9d,0x78,0xc5,0x4e,0xe9,0x43,0xb2,0x8b,0x2f,0x2f,0xd1,0x95,0xbb,0x9f,0x12,0xd9,0x91,0x0d,0x4b,0x32,0xf9,0x5f,0x6d};
    static std::uint8_t subtrahend26[32] = {0xa7,0x19,0xc1,0xe0,0xdd,0xa9,0x2a,0x4f,0x03,0xc3,0x5b,0xaf,0x1a,0x0a,0x22,0x3f,0x2f,0xef,0x7b,0xeb,0x95,0x6d,0x50,0xb7,0xc2,0x51,0x79,0x7f,0x48,0xa8,0xcc,0x2f};
    static std::uint8_t sum26[32]        = {0xd2,0x91,0xfb,0x34,0x43,0xd7,0x13,0x54,0xeb,0xda,0x1d,0x16,0x34,0xdf,0x21,0x73,0x5b,0x3f,0xb3,0xe6,0x00,0x4e,0x4e,0x5b,0x17,0x3f,0x93,0xcb,0xea,0x50,0x93,0x3e};
    static int          borrow26         = -1;
    mpz_from_bytes(minuend, minuend26, 4);
    mpz_from_bytes(subtrahend, subtrahend26, 4);
    borrow = mpz_sub_borrow(sum, minuend, subtrahend, 0, 4);
    mpz_to_bytes(differencedata, sum, 4);
    if (std::memcmp(sum26, differencedata, 32) != 0 || borrow26 != borrow)
    {
        throw std::runtime_error("err in x64::mpz_sub_borrow");
    }

    static std::uint8_t minuend27[32]    = {0x24,0xc6,0x94,0x7e,0x99,0xf1,0x57,0x2c,0x3f,0x35,0xd7,0x4d,0x7b,0xa9,0x42,0x50,0x76,0xae,0x9f,0xd6,0xd7,0x8b,0xb0,0xfe,0x9e,0xb6,0xc0,0xbb,0x54,0x2f,0x95,0x33};
    static std::uint8_t subtrahend27[32] = {0x49,0x62,0x86,0x29,0xd5,0xe0,0x97,0xbf,0x19,0xfb,0xa1,0x53,0x9b,0x57,0xdf,0x30,0xb3,0x86,0xd4,0xab,0x97,0x3f,0x16,0xa8,0x8e,0xcd,0xcd,0xdc,0xed,0x48,0xa9,0xa1};
    static std::uint8_t sum27[32]        = {0xdb,0x64,0x0e,0x54,0xc4,0x10,0xbf,0x6d,0x25,0x3a,0x35,0xf9,0xe0,0x51,0x63,0x1f,0xc3,0x27,0xcb,0x2b,0x40,0x4c,0x9a,0x56,0x0f,0xe8,0xf2,0xde,0x66,0xe6,0xeb,0x92};
    static int          borrow27         = -1;
    mpz_from_bytes(minuend, minuend27, 4);
    mpz_from_bytes(subtrahend, subtrahend27, 4);
    borrow = mpz_sub_borrow(sum, minuend, subtrahend, 0, 4);
    mpz_to_bytes(differencedata, sum, 4);
    if (std::memcmp(sum27, differencedata, 32) != 0 || borrow27 != borrow)
    {
        throw std::runtime_error("err in x64::mpz_sub_borrow");
    }

    static std::uint8_t minuend28[32]    = {0x35,0x98,0x69,0x1a,0x50,0x06,0xb3,0xca,0xdf,0x6f,0x00,0x4d,0xa7,0x6b,0x15,0xd5,0x0b,0xb2,0xa5,0xf2,0x7b,0x58,0x1b,0x25,0x2d,0x9d,0xe4,0x8b,0x23,0xad,0x85,0xd7};
    static std::uint8_t subtrahend28[32] = {0x1a,0xe6,0xda,0x28,0xb9,0x67,0xbf,0xa5,0x5b,0x2b,0xaa,0x00,0x9d,0xdd,0xdb,0x58,0x26,0x19,0x96,0x67,0x30,0x5f,0xd8,0x11,0x5b,0xa1,0xcb,0x00,0xc8,0xf5,0x8d,0xb0};
    static std::uint8_t sum28[32]        = {0x1a,0xb1,0x8e,0xf1,0x96,0x9e,0xf4,0x25,0x84,0x43,0x56,0x4d,0x09,0x8d,0x3a,0x7c,0xe5,0x99,0x0f,0x8b,0x4a,0xf8,0x43,0x13,0xd1,0xfc,0x19,0x8a,0x5a,0xb7,0xf8,0x27};
    static int          borrow28         = 0;
    mpz_from_bytes(minuend, minuend28, 4);
    mpz_from_bytes(subtrahend, subtrahend28, 4);
    borrow = mpz_sub_borrow(sum, minuend, subtrahend, 0, 4);
    mpz_to_bytes(differencedata, sum, 4);
    if (std::memcmp(sum28, differencedata, 32) != 0 || borrow28 != borrow)
    {
        throw std::runtime_error("err in x64::mpz_sub_borrow");
    }

    static std::uint8_t minuend29[32]    = {0x94,0xf2,0xed,0x6a,0x01,0x40,0xd4,0xb3,0x3b,0x4c,0x15,0xac,0x2a,0x3e,0x42,0xe8,0x39,0x87,0x3e,0xb1,0xa1,0x80,0x1c,0x27,0x95,0x6d,0xa0,0x86,0x1d,0xdf,0x77,0xd0};
    static std::uint8_t subtrahend29[32] = {0xe2,0xc7,0x55,0xf4,0x06,0x6b,0xe9,0x70,0x3a,0x83,0x45,0x38,0xc1,0x51,0xa7,0xfd,0x8b,0x95,0x06,0xe6,0x2f,0xcc,0x2a,0x4c,0x29,0x36,0xa3,0x43,0xf9,0xc5,0x27,0x97};
    static std::uint8_t sum29[32]        = {0xb2,0x2b,0x97,0x75,0xfa,0xd4,0xeb,0x43,0x00,0xc8,0xd0,0x73,0x68,0xec,0x9a,0xea,0xad,0xf2,0x37,0xcb,0x71,0xb3,0xf1,0xdb,0x6c,0x36,0xfd,0x42,0x24,0x1a,0x50,0x39};
    static int          borrow29         = -1;
    mpz_from_bytes(minuend, minuend29, 4);
    mpz_from_bytes(subtrahend, subtrahend29, 4);
    borrow = mpz_sub_borrow(sum, minuend, subtrahend, 0, 4);
    mpz_to_bytes(differencedata, sum, 4);
    if (std::memcmp(sum29, differencedata, 32) != 0 || borrow29 != borrow)
    {
        throw std::runtime_error("err in x64::mpz_sub_borrow");
    }

    static std::uint8_t minuend30[32]    = {0x97,0xdb,0x3b,0x8a,0x0c,0xa8,0x15,0xbc,0xdb,0x3b,0x10,0x88,0x8b,0x0c,0x4f,0xf9,0x23,0xd2,0x9f,0x7e,0xc0,0xfe,0x89,0xcb,0x17,0xce,0xcd,0xc6,0xbc,0xc2,0x81,0x69};
    static std::uint8_t subtrahend30[32] = {0xd2,0x15,0x8e,0xe7,0x08,0xd1,0x21,0xb3,0xff,0x96,0x78,0xf2,0x7f,0x32,0xe5,0x57,0x04,0x16,0x3b,0x14,0x4f,0x7f,0x9a,0xf6,0xff,0xac,0x09,0x4c,0x34,0x83,0x96,0xa4};
    static std::uint8_t sum30[32]        = {0xc5,0xc5,0xac,0xa3,0x03,0xd6,0xf4,0x08,0xdb,0xa4,0x97,0x96,0x0b,0xd9,0x6a,0xa2,0x1f,0xbc,0x64,0x6a,0x71,0x7e,0xee,0xd4,0x18,0x22,0xc4,0x7a,0x88,0x3e,0xea,0xc5};
    static int          borrow30         = -1;
    mpz_from_bytes(minuend, minuend30, 4);
    mpz_from_bytes(subtrahend, subtrahend30, 4);
    borrow = mpz_sub_borrow(sum, minuend, subtrahend, 0, 4);
    mpz_to_bytes(differencedata, sum, 4);
    if (std::memcmp(sum30, differencedata, 32) != 0 || borrow30 != borrow)
    {
        throw std::runtime_error("err in x64::mpz_sub_borrow");
    }

    static std::uint8_t minuend31[32]    = {0x30,0x0d,0xe2,0xbc,0x45,0x9e,0x43,0x35,0x78,0x5d,0x59,0x16,0x9d,0x08,0x28,0x45,0x46,0x86,0xe1,0x9a,0xa4,0x2b,0xb7,0xd2,0x8f,0xf6,0x97,0x77,0xa0,0x4f,0xf5,0x78};
    static std::uint8_t subtrahend31[32] = {0x05,0x58,0xfc,0x6c,0x6e,0x8e,0xb0,0x75,0xd4,0x07,0xb4,0x35,0x7e,0xe3,0x12,0x1d,0x9c,0x7e,0x0b,0x51,0x12,0xf6,0xfe,0xe1,0x87,0xe9,0xcf,0xca,0xc2,0xee,0xfa,0x00};
    static std::uint8_t sum31[32]        = {0x2a,0xb4,0xe6,0x4f,0xd7,0x0f,0x92,0xbf,0xa4,0x55,0xa4,0xe1,0x1e,0x25,0x16,0x27,0xaa,0x08,0xd6,0x49,0x91,0x34,0xb8,0xf1,0x08,0x0c,0xc7,0xac,0xdd,0x60,0xfb,0x78};
    static int          borrow31         = 0;
    mpz_from_bytes(minuend, minuend31, 4);
    mpz_from_bytes(subtrahend, subtrahend31, 4);
    borrow = mpz_sub_borrow(sum, minuend, subtrahend, 0, 4);
    mpz_to_bytes(differencedata, sum, 4);
    if (std::memcmp(sum31, differencedata, 32) != 0 || borrow31 != borrow)
    {
        throw std::runtime_error("err in x64::mpz_sub_borrow");
    }

    static std::uint8_t minuend32[32]    = {0x00,0xd1,0x1e,0x07,0xc8,0x83,0xe2,0xf2,0x9c,0xf0,0x0b,0x0a,0xa3,0x0e,0xc9,0x7d,0x93,0x19,0x80,0xf3,0xf7,0x45,0x72,0x31,0xdc,0xe1,0xca,0x29,0xd2,0x8e,0x90,0xd9};
    static std::uint8_t subtrahend32[32] = {0xcb,0xb3,0xb8,0x62,0xff,0xa5,0xb5,0xb2,0xe2,0x15,0x4c,0x44,0xb7,0x69,0x9c,0xd1,0x53,0xbe,0x7b,0x62,0xbd,0xda,0x52,0x9c,0x9b,0xb1,0xdb,0x18,0x7e,0xd9,0x8e,0xa1};
    static std::uint8_t sum32[32]        = {0x35,0x1d,0x65,0xa4,0xc8,0xde,0x2d,0x3f,0xba,0xda,0xbe,0xc5,0xeb,0xa5,0x2c,0xac,0x3f,0x5b,0x05,0x91,0x39,0x6b,0x1f,0x95,0x41,0x2f,0xef,0x11,0x53,0xb5,0x02,0x38};
    static int          borrow32         = -1;
    mpz_from_bytes(minuend, minuend32, 4);
    mpz_from_bytes(subtrahend, subtrahend32, 4);
    borrow = mpz_sub_borrow(sum, minuend, subtrahend, 0, 4);
    mpz_to_bytes(differencedata, sum, 4);
    if (std::memcmp(sum32, differencedata, 32) != 0 || borrow32 != borrow)
    {
        throw std::runtime_error("err in x64::mpz_sub_borrow");
    }

    static std::uint8_t minuend33[32]    = {0x76,0x27,0x3d,0x06,0xe8,0xdb,0x91,0xb7,0x52,0x62,0x4e,0x0e,0x40,0x49,0xc0,0xe2,0x86,0x1d,0xb9,0xd8,0xef,0x08,0xb2,0xf1,0xfb,0xdd,0xa4,0x1f,0xa0,0x79,0xe8,0x37};
    static std::uint8_t subtrahend33[32] = {0x5a,0xb6,0x72,0x28,0x68,0xe7,0xf0,0x1e,0x93,0xf9,0x34,0x4e,0xfb,0xed,0x1c,0xea,0xda,0xbe,0xe0,0x7b,0xf9,0x1b,0x87,0x42,0x60,0x45,0xa7,0x96,0xcd,0x3b,0x6f,0x2c};
    static std::uint8_t sum33[32]        = {0x1b,0x70,0xca,0xde,0x7f,0xf3,0xa1,0x98,0xbe,0x69,0x19,0xbf,0x44,0x5c,0xa3,0xf7,0xab,0x5e,0xd9,0x5c,0xf5,0xed,0x2b,0xaf,0x9b,0x97,0xfc,0x88,0xd3,0x3e,0x79,0x0b};
    static int          borrow33         = 0;
    mpz_from_bytes(minuend, minuend33, 4);
    mpz_from_bytes(subtrahend, subtrahend33, 4);
    borrow = mpz_sub_borrow(sum, minuend, subtrahend, 0, 4);
    mpz_to_bytes(differencedata, sum, 4);
    if (std::memcmp(sum33, differencedata, 32) != 0 || borrow33 != borrow)
    {
        throw std::runtime_error("err in x64::mpz_sub_borrow");
    }

    static std::uint8_t minuend34[32]    = {0x7b,0xf0,0x76,0xbf,0x6b,0x6e,0x0a,0x82,0xef,0x19,0x40,0x84,0xfd,0xad,0x2f,0x5f,0x50,0xd7,0xde,0x59,0x78,0xb2,0x27,0xc8,0x64,0xf8,0xe0,0x0b,0x83,0xd3,0x37,0x4a};
    static std::uint8_t subtrahend34[32] = {0x7d,0x08,0x53,0xf3,0xd9,0xf8,0x24,0xc4,0x2f,0xbe,0x70,0x93,0x82,0x16,0xc2,0xa0,0xf7,0x9b,0x6d,0x1a,0xd8,0xef,0xcb,0x78,0x11,0x87,0x0f,0xb2,0x76,0x2f,0xb6,0xc0};
    static std::uint8_t sum34[32]        = {0xfe,0xe8,0x22,0xcb,0x91,0x75,0xe5,0xbe,0xbf,0x5a,0xcf,0xf1,0x7b,0x96,0x6c,0xbe,0x59,0x3c,0x71,0x3e,0x9f,0xc2,0x5c,0x50,0x53,0x71,0xd0,0x59,0x0d,0xa3,0x80,0x8a};
    static int          borrow34         = -1;
    mpz_from_bytes(minuend, minuend34, 4);
    mpz_from_bytes(subtrahend, subtrahend34, 4);
    borrow = mpz_sub_borrow(sum, minuend, subtrahend, 0, 4);
    mpz_to_bytes(differencedata, sum, 4);
    if (std::memcmp(sum34, differencedata, 32) != 0 || borrow34 != borrow)
    {
        throw std::runtime_error("err in x64::mpz_sub_borrow");
    }

    static std::uint8_t minuend35[32]    = {0x28,0xd3,0x85,0xb1,0xc4,0xc5,0x99,0x1f,0x54,0xe3,0xfe,0xf2,0xc6,0x5d,0x68,0xbf,0x08,0x02,0xfe,0x53,0xc4,0x7e,0xf7,0x38,0xff,0xb2,0x61,0xc6,0x50,0xcb,0x2a,0xc5};
    static std::uint8_t subtrahend35[32] = {0x06,0x58,0x0f,0x0f,0xc2,0x4a,0xf1,0x35,0xd0,0x8b,0xd7,0x95,0x11,0x46,0xd3,0xd7,0x4b,0xd0,0xcd,0x1c,0x31,0xa6,0xbb,0x15,0xc1,0xf1,0xb4,0x61,0x16,0x89,0xd9,0xdc};
    static std::uint8_t sum35[32]        = {0x22,0x7b,0x76,0xa2,0x02,0x7a,0xa7,0xe9,0x84,0x58,0x27,0x5d,0xb5,0x16,0x94,0xe7,0xbc,0x32,0x31,0x37,0x92,0xd8,0x3c,0x23,0x3d,0xc0,0xad,0x65,0x3a,0x41,0x50,0xe9};
    static int          borrow35         = 0;
    mpz_from_bytes(minuend, minuend35, 4);
    mpz_from_bytes(subtrahend, subtrahend35, 4);
    borrow = mpz_sub_borrow(sum, minuend, subtrahend, 0, 4);
    mpz_to_bytes(differencedata, sum, 4);
    if (std::memcmp(sum35, differencedata, 32) != 0 || borrow35 != borrow)
    {
        throw std::runtime_error("err in x64::mpz_sub_borrow");
    }

    static std::uint8_t minuend36[32]    = {0x3d,0x75,0x51,0xef,0x19,0x9b,0xe8,0xa0,0x55,0xc1,0x0e,0x4a,0x9a,0x00,0x2c,0x7b,0x9b,0x63,0x93,0xf9,0x94,0x37,0x47,0xe1,0x7b,0x3d,0x7a,0x52,0xfc,0x46,0x82,0x73};
    static std::uint8_t subtrahend36[32] = {0xda,0xba,0x5a,0x18,0xe5,0x22,0x61,0xd6,0x7c,0xf9,0x21,0xbf,0x8c,0xb3,0x23,0x27,0x67,0xce,0x49,0x53,0xc5,0x89,0x10,0x81,0xc1,0x72,0x2b,0x69,0xab,0xf5,0x91,0x13};
    static std::uint8_t sum36[32]        = {0x62,0xba,0xf7,0xd6,0x34,0x79,0x86,0xc9,0xd8,0xc7,0xec,0x8b,0x0d,0x4d,0x09,0x54,0x33,0x95,0x4a,0xa5,0xce,0xae,0x37,0x5f,0xb9,0xcb,0x4e,0xe9,0x50,0x50,0xf1,0x60};
    static int          borrow36         = -1;
    mpz_from_bytes(minuend, minuend36, 4);
    mpz_from_bytes(subtrahend, subtrahend36, 4);
    borrow = mpz_sub_borrow(sum, minuend, subtrahend, 0, 4);
    mpz_to_bytes(differencedata, sum, 4);
    if (std::memcmp(sum36, differencedata, 32) != 0 || borrow36 != borrow)
    {
        throw std::runtime_error("err in x64::mpz_sub_borrow");
    }

    static std::uint8_t minuend37[32]    = {0x83,0x03,0x70,0x58,0x20,0xdc,0x4b,0x9a,0xfd,0xb4,0x88,0xa9,0xb5,0x33,0x6f,0xa4,0x98,0xfa,0x20,0xf3,0x9e,0xff,0x86,0x56,0xd9,0x2f,0xbb,0x3f,0xc0,0xc2,0x46,0x75};
    static std::uint8_t subtrahend37[32] = {0x96,0x7b,0x43,0x92,0xd9,0xa9,0xbe,0x31,0x29,0x4f,0xfb,0x7c,0x82,0x9a,0x28,0xf9,0xf7,0xb4,0xb6,0x4b,0xff,0x24,0x4d,0x44,0x5e,0xdb,0xb6,0x33,0xdf,0x5f,0x96,0x42};
    static std::uint8_t sum37[32]        = {0xec,0x88,0x2c,0xc5,0x47,0x32,0x8d,0x69,0xd4,0x64,0x8d,0x2d,0x32,0x99,0x46,0xaa,0xa1,0x45,0x6a,0xa7,0x9f,0xdb,0x39,0x12,0x7a,0x54,0x05,0x0b,0xe1,0x62,0xb0,0x33};
    static int          borrow37         = -1;
    mpz_from_bytes(minuend, minuend37, 4);
    mpz_from_bytes(subtrahend, subtrahend37, 4);
    borrow = mpz_sub_borrow(sum, minuend, subtrahend, 0, 4);
    mpz_to_bytes(differencedata, sum, 4);
    if (std::memcmp(sum37, differencedata, 32) != 0 || borrow37 != borrow)
    {
        throw std::runtime_error("err in x64::mpz_sub_borrow");
    }

    static std::uint8_t minuend38[32]    = {0x7b,0x73,0xc5,0xfe,0x31,0x81,0x8d,0x9c,0xfc,0xa1,0x47,0x0a,0x13,0xc4,0xd7,0xb1,0x6b,0x49,0x0f,0xa9,0x10,0x47,0x39,0x55,0xd5,0x02,0x22,0xc5,0x65,0x1f,0xcb,0x3a};
    static std::uint8_t subtrahend38[32] = {0x67,0xbc,0x14,0x07,0x20,0xac,0x0e,0xd7,0x4a,0x1d,0xf2,0x46,0xcf,0xf3,0xe0,0x1c,0xb6,0xcf,0x33,0xe1,0x10,0x94,0x35,0xbc,0x7d,0xb5,0x1f,0x5e,0xbe,0xa5,0x4e,0x00};
    static std::uint8_t sum38[32]        = {0x13,0xb7,0xb1,0xf7,0x10,0xd5,0x7e,0xc5,0xb2,0x83,0x54,0xc3,0x43,0xd0,0xf7,0x94,0xb4,0x79,0xdb,0xc7,0xff,0xb3,0x03,0x99,0x57,0x4d,0x03,0x66,0xa6,0x7a,0x7d,0x3a};
    static int          borrow38         = 0;
    mpz_from_bytes(minuend, minuend38, 4);
    mpz_from_bytes(subtrahend, subtrahend38, 4);
    borrow = mpz_sub_borrow(sum, minuend, subtrahend, 0, 4);
    mpz_to_bytes(differencedata, sum, 4);
    if (std::memcmp(sum38, differencedata, 32) != 0 || borrow38 != borrow)
    {
        throw std::runtime_error("err in x64::mpz_sub_borrow");
    }

    static std::uint8_t minuend39[32]    = {0xd9,0x86,0xbe,0xae,0xfd,0x76,0x47,0xe8,0x45,0x2a,0xd8,0x1b,0x73,0x1f,0x87,0x1f,0x9d,0x56,0x94,0x99,0xca,0x32,0x9a,0x1c,0x6a,0x06,0x88,0x12,0x5f,0xcf,0x95,0x3f};
    static std::uint8_t subtrahend39[32] = {0x0c,0x25,0xa1,0xf7,0x76,0x44,0x43,0xe3,0xe6,0xe5,0xe6,0x6a,0x8f,0x7e,0x57,0x8e,0xfd,0x49,0x44,0xdc,0x1f,0xc4,0xda,0x8c,0xf0,0xbd,0x8c,0x03,0x05,0xc7,0x2d,0x34};
    static std::uint8_t sum39[32]        = {0xcd,0x61,0x1c,0xb7,0x87,0x32,0x04,0x04,0x5e,0x44,0xf1,0xb0,0xe3,0xa1,0x2f,0x90,0xa0,0x0d,0x4f,0xbd,0xaa,0x6d,0xbf,0x8f,0x79,0x48,0xfc,0x0f,0x5a,0x08,0x68,0x0b};
    static int          borrow39         = 0;
    mpz_from_bytes(minuend, minuend39, 4);
    mpz_from_bytes(subtrahend, subtrahend39, 4);
    borrow = mpz_sub_borrow(sum, minuend, subtrahend, 0, 4);
    mpz_to_bytes(differencedata, sum, 4);
    if (std::memcmp(sum39, differencedata, 32) != 0 || borrow39 != borrow)
    {
        throw std::runtime_error("err in x64::mpz_sub_borrow");
    }

    static std::uint8_t minuend40[32]    = {0xfd,0x17,0xe0,0x6e,0x57,0xcc,0x97,0x8b,0xad,0x5b,0x84,0x6f,0xe6,0x4e,0x84,0xae,0x21,0xe7,0x4f,0xbf,0x98,0xf6,0x05,0x3f,0xaf,0x0f,0x32,0xa5,0xd7,0x5d,0x60,0xa5};
    static std::uint8_t subtrahend40[32] = {0x3b,0xc6,0x32,0x60,0x23,0xcd,0xc3,0xa6,0x36,0x00,0xb6,0xca,0xd2,0x3c,0x81,0xef,0x15,0x3c,0xdd,0x93,0xe0,0x94,0x5f,0x22,0xd9,0xcf,0x8c,0x27,0x2e,0x15,0x6a,0xd6};
    static std::uint8_t sum40[32]        = {0xc1,0x51,0xae,0x0e,0x33,0xfe,0xd3,0xe5,0x77,0x5a,0xcd,0xa5,0x14,0x12,0x02,0xbf,0x0c,0xaa,0x72,0x2b,0xb8,0x61,0xa6,0x1c,0xd5,0x3f,0xa6,0x7e,0xa9,0x47,0xf5,0xcf};
    static int          borrow40         = 0;
    mpz_from_bytes(minuend, minuend40, 4);
    mpz_from_bytes(subtrahend, subtrahend40, 4);
    borrow = mpz_sub_borrow(sum, minuend, subtrahend, 0, 4);
    mpz_to_bytes(differencedata, sum, 4);
    if (std::memcmp(sum40, differencedata, 32) != 0 || borrow40 != borrow)
    {
        throw std::runtime_error("err in x64::mpz_sub_borrow");
    }

    static std::uint8_t minuend41[32]    = {0x14,0x0e,0x4c,0xdc,0x0d,0xeb,0x04,0xfa,0xd2,0xb1,0x80,0xf8,0x50,0xd2,0xa2,0x1e,0xb7,0x62,0xb4,0x9c,0xae,0x9c,0x03,0xe3,0x55,0x39,0xb8,0x00,0x93,0xd5,0xed,0x3c};
    static std::uint8_t subtrahend41[32] = {0x9f,0x54,0x4f,0x7b,0x90,0xae,0xe2,0x02,0xa7,0x55,0xf8,0xf1,0x53,0xab,0x3c,0x24,0x68,0xe5,0x31,0x01,0x4f,0xed,0x98,0xb3,0x51,0x7a,0xde,0x28,0x66,0xbc,0x30,0x01};
    static std::uint8_t sum41[32]        = {0x74,0xb9,0xfd,0x60,0x7d,0x3c,0x22,0xf8,0x2b,0x5b,0x88,0x06,0xfd,0x27,0x65,0xfa,0x4e,0x7d,0x83,0x9b,0x5e,0xae,0x6b,0x30,0x03,0xbe,0xd9,0xd8,0x2d,0x19,0xbd,0x3b};
    static int          borrow41         = -1;
    mpz_from_bytes(minuend, minuend41, 4);
    mpz_from_bytes(subtrahend, subtrahend41, 4);
    borrow = mpz_sub_borrow(sum, minuend, subtrahend, 0, 4);
    mpz_to_bytes(differencedata, sum, 4);
    if (std::memcmp(sum41, differencedata, 32) != 0 || borrow41 != borrow)
    {
        throw std::runtime_error("err in x64::mpz_sub_borrow");
    }

    static std::uint8_t minuend42[32]    = {0xfc,0xe3,0xb9,0x51,0xa2,0x35,0x91,0x43,0x01,0x75,0x03,0x29,0xf9,0x10,0x88,0x70,0xe2,0xcf,0xa1,0xc0,0x2d,0x79,0x87,0xf4,0x9f,0xd7,0xb1,0xc2,0x45,0x96,0xe1,0x35};
    static std::uint8_t subtrahend42[32] = {0x90,0x73,0x61,0xeb,0x02,0x27,0xce,0x9a,0xc5,0x27,0x56,0x3a,0xf8,0x92,0xf1,0x17,0xe1,0x91,0x7a,0xb0,0x11,0x24,0x01,0x3a,0x48,0x31,0x61,0xec,0xa7,0xf0,0x44,0x39};
    static std::uint8_t sum42[32]        = {0x6c,0x70,0x57,0x66,0xa0,0x0d,0xc2,0xa8,0x3c,0x4d,0xac,0xef,0x00,0x7d,0x97,0x59,0x01,0x3e,0x27,0x10,0x1c,0x55,0x86,0xba,0x57,0xa6,0x4f,0xd5,0x9d,0xa6,0x9c,0xfc};
    static int          borrow42         = 0;
    mpz_from_bytes(minuend, minuend42, 4);
    mpz_from_bytes(subtrahend, subtrahend42, 4);
    borrow = mpz_sub_borrow(sum, minuend, subtrahend, 0, 4);
    mpz_to_bytes(differencedata, sum, 4);
    if (std::memcmp(sum42, differencedata, 32) != 0 || borrow42 != borrow)
    {
        throw std::runtime_error("err in x64::mpz_sub_borrow");
    }

    static std::uint8_t minuend43[32]    = {0x7d,0x50,0x2a,0x06,0x40,0x01,0x7c,0x0b,0xa8,0x00,0x82,0x40,0x18,0x42,0xe7,0xa3,0x28,0x40,0xf9,0xcd,0x41,0xd8,0x36,0x2c,0xe1,0xa1,0x34,0xbd,0x50,0xaa,0xa0,0xe0};
    static std::uint8_t subtrahend43[32] = {0x33,0x2c,0x8a,0xa8,0x94,0xb7,0xa8,0xec,0x5a,0xbf,0x60,0x3f,0xa3,0x6c,0xa0,0x9b,0x80,0x02,0x51,0x7b,0x1f,0x9f,0x5a,0x9a,0xd5,0x01,0xee,0xaa,0xcf,0x91,0x28,0x3f};
    static std::uint8_t sum43[32]        = {0x4a,0x23,0x9f,0x5d,0xab,0x49,0xd3,0x1f,0x4d,0x41,0x22,0x00,0x74,0xd6,0x47,0x07,0xa8,0x3e,0xa8,0x52,0x22,0x38,0xdb,0x92,0x0c,0x9f,0x46,0x12,0x81,0x19,0x78,0xa1};
    static int          borrow43         = 0;
    mpz_from_bytes(minuend, minuend43, 4);
    mpz_from_bytes(subtrahend, subtrahend43, 4);
    borrow = mpz_sub_borrow(sum, minuend, subtrahend, 0, 4);
    mpz_to_bytes(differencedata, sum, 4);
    if (std::memcmp(sum43, differencedata, 32) != 0 || borrow43 != borrow)
    {
        throw std::runtime_error("err in x64::mpz_sub_borrow");
    }

    static std::uint8_t minuend44[32]    = {0xb4,0x06,0x96,0xa8,0x8c,0xd6,0x2f,0xee,0xa5,0x4f,0xf3,0xbf,0x0f,0xc5,0xce,0xe8,0xce,0x69,0x73,0xfd,0x64,0x15,0x33,0xcc,0xd9,0x29,0x62,0x0d,0x1f,0xc7,0x3e,0x39};
    static std::uint8_t subtrahend44[32] = {0x40,0x36,0x6b,0x30,0x27,0xf6,0x68,0xa5,0x16,0xef,0x09,0x7d,0xb8,0xa5,0xf8,0x2d,0xdd,0xbb,0xa1,0x70,0x61,0x0b,0x0c,0x9f,0x96,0xf7,0x71,0x12,0x8e,0x28,0x99,0x98};
    static std::uint8_t sum44[32]        = {0x73,0xd0,0x2b,0x78,0x64,0xdf,0xc7,0x49,0x8e,0x60,0xea,0x41,0x57,0x1f,0xd6,0xba,0xf0,0xad,0xd2,0x8d,0x03,0x0a,0x27,0x2d,0x42,0x31,0xf0,0xfa,0x91,0x9e,0xa4,0xa1};
    static int          borrow44         = 0;
    mpz_from_bytes(minuend, minuend44, 4);
    mpz_from_bytes(subtrahend, subtrahend44, 4);
    borrow = mpz_sub_borrow(sum, minuend, subtrahend, 0, 4);
    mpz_to_bytes(differencedata, sum, 4);
    if (std::memcmp(sum44, differencedata, 32) != 0 || borrow44 != borrow)
    {
        throw std::runtime_error("err in x64::mpz_sub_borrow");
    }

    static std::uint8_t minuend45[32]    = {0xf3,0xce,0x75,0xde,0x9c,0x59,0xde,0xf7,0x83,0x6b,0x91,0x6c,0x52,0x90,0x09,0x81,0xb8,0x25,0xb4,0x09,0xf4,0x8d,0xa4,0x3c,0x73,0x39,0x9b,0x15,0xea,0xb8,0xff,0xe4};
    static std::uint8_t subtrahend45[32] = {0xba,0xfa,0x45,0x8f,0xbe,0x7f,0xc7,0xa6,0x74,0x29,0x3a,0xcb,0x54,0x6e,0x09,0x28,0x42,0xe7,0x97,0x5f,0x7e,0x45,0x3d,0x9c,0x8c,0x58,0x15,0xbf,0x5a,0x5e,0x41,0x7f};
    static std::uint8_t sum45[32]        = {0x38,0xd4,0x30,0x4e,0xdd,0xda,0x17,0x51,0x0f,0x42,0x56,0xa0,0xfe,0x22,0x00,0x59,0x75,0x3e,0x1c,0xaa,0x76,0x48,0x66,0x9f,0xe6,0xe1,0x85,0x56,0x90,0x5a,0xbe,0x65};
    static int          borrow45         = 0;
    mpz_from_bytes(minuend, minuend45, 4);
    mpz_from_bytes(subtrahend, subtrahend45, 4);
    borrow = mpz_sub_borrow(sum, minuend, subtrahend, 0, 4);
    mpz_to_bytes(differencedata, sum, 4);
    if (std::memcmp(sum45, differencedata, 32) != 0 || borrow45 != borrow)
    {
        throw std::runtime_error("err in x64::mpz_sub_borrow");
    }

    static std::uint8_t minuend46[32]    = {0xc7,0xba,0xe4,0x1d,0x48,0x7d,0x16,0x4e,0x18,0xde,0xe7,0x9b,0x57,0xa9,0xcd,0x5f,0x55,0xe7,0xb9,0xf3,0xb7,0xd4,0x3d,0xdf,0x1c,0x89,0xf3,0xb2,0x13,0x34,0xe4,0x28};
    static std::uint8_t subtrahend46[32] = {0x54,0x79,0xb2,0x1f,0x9f,0x42,0xcf,0x93,0x7d,0x30,0xca,0xcb,0xba,0x36,0xa1,0x31,0xa1,0x70,0xd0,0x4e,0x0c,0xee,0xce,0x76,0x02,0xbc,0xd3,0xcc,0x5a,0xc5,0xcb,0x73};
    static std::uint8_t sum46[32]        = {0x73,0x41,0x31,0xfd,0xa9,0x3a,0x46,0xba,0x9b,0xae,0x1c,0xcf,0x9d,0x73,0x2c,0x2d,0xb4,0x76,0xe9,0xa5,0xaa,0xe5,0x6f,0x69,0x19,0xcd,0x1f,0xe5,0xb8,0x6f,0x18,0xb5};
    static int          borrow46         = 0;
    mpz_from_bytes(minuend, minuend46, 4);
    mpz_from_bytes(subtrahend, subtrahend46, 4);
    borrow = mpz_sub_borrow(sum, minuend, subtrahend, 0, 4);
    mpz_to_bytes(differencedata, sum, 4);
    if (std::memcmp(sum46, differencedata, 32) != 0 || borrow46 != borrow)
    {
        throw std::runtime_error("err in x64::mpz_sub_borrow");
    }

    static std::uint8_t minuend47[32]    = {0xaa,0x87,0xfc,0x5c,0xcb,0xf8,0x65,0x0e,0x7c,0x48,0xba,0xb7,0xe5,0xc2,0x0c,0x45,0xe3,0x47,0x5c,0xef,0x06,0x05,0x33,0xc0,0x1b,0x92,0xc8,0xf8,0x73,0xf1,0x7e,0xe2};
    static std::uint8_t subtrahend47[32] = {0xbb,0x0b,0x98,0x3b,0xce,0xf2,0x24,0xdf,0x01,0xae,0xef,0xed,0x16,0xaf,0xd0,0xaa,0xe6,0x82,0x84,0xb4,0x52,0x58,0x7d,0x9a,0xcc,0x6a,0x3e,0x7a,0x55,0xec,0x11,0x1c};
    static std::uint8_t sum47[32]        = {0xef,0x7c,0x64,0x20,0xfd,0x06,0x40,0x2f,0x7a,0x99,0xca,0xca,0xcf,0x12,0x3b,0x9a,0xfc,0xc4,0xd8,0x3a,0xb3,0xac,0xb6,0x25,0x4f,0x28,0x8a,0x7e,0x1e,0x05,0x6d,0xc6};
    static int          borrow47         = -1;
    mpz_from_bytes(minuend, minuend47, 4);
    mpz_from_bytes(subtrahend, subtrahend47, 4);
    borrow = mpz_sub_borrow(sum, minuend, subtrahend, 0, 4);
    mpz_to_bytes(differencedata, sum, 4);
    if (std::memcmp(sum47, differencedata, 32) != 0 || borrow47 != borrow)
    {
        throw std::runtime_error("err in x64::mpz_sub_borrow");
    }

    static std::uint8_t minuend48[32]    = {0x09,0x6b,0x4b,0x14,0xee,0xc2,0xcf,0xdd,0x1a,0xe6,0xfb,0x17,0x3d,0xe3,0x8d,0x30,0x4a,0x83,0x80,0x5d,0x3a,0xfa,0xf7,0x3e,0xd5,0xe1,0x7c,0x5e,0x0b,0x1b,0x61,0x04};
    static std::uint8_t subtrahend48[32] = {0x49,0x58,0xba,0xe0,0x68,0x12,0x86,0xb9,0xec,0xb8,0xcd,0xfd,0xd1,0x7b,0x81,0xaf,0x03,0xe2,0x5f,0x93,0x66,0xe6,0x5d,0xb4,0x50,0xaa,0xbf,0xe1,0xbf,0x0b,0x91,0xf1};
    static std::uint8_t sum48[32]        = {0xc0,0x12,0x90,0x34,0x86,0xb0,0x49,0x23,0x2e,0x2e,0x2d,0x19,0x6c,0x68,0x0b,0x81,0x46,0xa1,0x20,0xc9,0xd4,0x14,0x99,0x8a,0x85,0x36,0xbc,0x7c,0x4c,0x0f,0xcf,0x13};
    static int          borrow48         = -1;
    mpz_from_bytes(minuend, minuend48, 4);
    mpz_from_bytes(subtrahend, subtrahend48, 4);
    borrow = mpz_sub_borrow(sum, minuend, subtrahend, 0, 4);
    mpz_to_bytes(differencedata, sum, 4);
    if (std::memcmp(sum48, differencedata, 32) != 0 || borrow48 != borrow)
    {
        throw std::runtime_error("err in x64::mpz_sub_borrow");
    }

    static std::uint8_t minuend49[32]    = {0xa7,0xcb,0xf3,0x7b,0xd2,0x9f,0x17,0x0f,0x0d,0x63,0x1f,0x8d,0xd8,0xb1,0x62,0xbc,0x8d,0xf4,0x11,0x8c,0x89,0x93,0xc6,0x20,0x3c,0x1b,0x77,0x68,0xb8,0x11,0xcd,0x80};
    static std::uint8_t subtrahend49[32] = {0xee,0x47,0x6b,0x43,0xee,0xe7,0xa6,0xfb,0xb3,0x4f,0x3b,0x27,0x4e,0xf0,0x86,0x99,0x48,0x47,0x02,0x16,0x12,0xfe,0x9b,0x31,0xa9,0xd1,0x3a,0xed,0x69,0x3b,0xd5,0x45};
    static std::uint8_t sum49[32]        = {0xb9,0x84,0x88,0x37,0xe3,0xb7,0x70,0x13,0x5a,0x13,0xe4,0x66,0x89,0xc0,0xdc,0x23,0x45,0xad,0x0f,0x76,0x76,0x95,0x2a,0xee,0x92,0x4a,0x3c,0x7b,0x4e,0xd5,0xf8,0x3b};
    static int          borrow49         = -1;
    mpz_from_bytes(minuend, minuend49, 4);
    mpz_from_bytes(subtrahend, subtrahend49, 4);
    borrow = mpz_sub_borrow(sum, minuend, subtrahend, 0, 4);
    mpz_to_bytes(differencedata, sum, 4);
    if (std::memcmp(sum49, differencedata, 32) != 0 || borrow49 != borrow)
    {
        throw std::runtime_error("err in x64::mpz_sub_borrow");
    }

    static std::uint8_t minuend50[32]    = {0x9d,0xc0,0x43,0x83,0xb8,0x0e,0xa8,0x38,0xe9,0x1a,0x7e,0x2e,0x5e,0xb2,0x15,0xed,0xf5,0x15,0x32,0x02,0xaf,0xb0,0x60,0x3b,0xb0,0xff,0xc5,0xf3,0x60,0x49,0x9a,0xb7};
    static std::uint8_t subtrahend50[32] = {0x42,0x1a,0xae,0xac,0x63,0x40,0x59,0xe6,0xd5,0x2a,0x1f,0xff,0x60,0x84,0x11,0xab,0x52,0x34,0xcd,0x15,0xd6,0x14,0xe2,0x5f,0xc2,0xdf,0x18,0xab,0x37,0x53,0x36,0x17};
    static std::uint8_t sum50[32]        = {0x5b,0xa5,0x94,0xd7,0x54,0xce,0x4e,0x52,0x13,0xf0,0x5e,0x2e,0xfe,0x2e,0x04,0x42,0xa2,0xe0,0x64,0xec,0xd9,0x9b,0x7d,0xdb,0xee,0x20,0xad,0x48,0x28,0xf6,0x64,0xa0};
    static int          borrow50         = 0;
    mpz_from_bytes(minuend, minuend50, 4);
    mpz_from_bytes(subtrahend, subtrahend50, 4);
    borrow = mpz_sub_borrow(sum, minuend, subtrahend, 0, 4);
    mpz_to_bytes(differencedata, sum, 4);
    if (std::memcmp(sum50, differencedata, 32) != 0 || borrow50 != borrow)
    {
        throw std::runtime_error("err in x64::mpz_sub_borrow");
    }

    static std::uint8_t minuend51[32]    = {0xb9,0x0d,0xdc,0x04,0x83,0x70,0xd9,0x94,0x02,0x0a,0x93,0xf5,0x6c,0x48,0xe2,0x6b,0x74,0x0c,0x4a,0xa3,0x5b,0x27,0xbb,0x21,0xd2,0x91,0x19,0x3c,0xa4,0xf0,0xcd,0x98};
    static std::uint8_t subtrahend51[32] = {0xe6,0xe7,0xe0,0xa6,0xfc,0x84,0xcb,0x75,0x3e,0x6a,0xca,0x9f,0x5a,0xa7,0x68,0xdc,0xb2,0x77,0x1e,0xad,0xfb,0x9e,0x06,0x45,0x3b,0x5d,0x15,0xf3,0xee,0x95,0x5f,0x90};
    static std::uint8_t sum51[32]        = {0xd2,0x25,0xfb,0x5d,0x86,0xec,0x0e,0x1e,0xc3,0x9f,0xc9,0x56,0x11,0xa1,0x79,0x8e,0xc1,0x95,0x2b,0xf5,0x5f,0x89,0xb4,0xdc,0x97,0x34,0x03,0x48,0xb6,0x5b,0x6e,0x08};
    static int          borrow51         = -1;
    mpz_from_bytes(minuend, minuend51, 4);
    mpz_from_bytes(subtrahend, subtrahend51, 4);
    borrow = mpz_sub_borrow(sum, minuend, subtrahend, 0, 4);
    mpz_to_bytes(differencedata, sum, 4);
    if (std::memcmp(sum51, differencedata, 32) != 0 || borrow51 != borrow)
    {
        throw std::runtime_error("err in x64::mpz_sub_borrow");
    }

    static std::uint8_t minuend52[32]    = {0xa6,0xd5,0x3d,0x24,0x1d,0x29,0x0b,0x88,0x25,0xd9,0x8d,0x81,0xc9,0x08,0x7e,0xba,0x95,0x30,0x15,0x4d,0xf1,0xb6,0x16,0x71,0x66,0x36,0x89,0x52,0x7a,0x7b,0x13,0xfe};
    static std::uint8_t subtrahend52[32] = {0x84,0x38,0x8d,0x51,0xc9,0x1f,0x7f,0xf6,0xad,0x82,0x6b,0x87,0xd9,0x0f,0xcc,0x57,0x35,0xa9,0x50,0x6c,0x90,0x02,0x15,0xde,0x9e,0xfb,0x78,0x82,0x52,0xc7,0xb3,0x85};
    static std::uint8_t sum52[32]        = {0x22,0x9c,0xaf,0xd2,0x54,0x09,0x8b,0x91,0x78,0x57,0x21,0xf9,0xef,0xf8,0xb2,0x63,0x5f,0x86,0xc4,0xe1,0x61,0xb4,0x00,0x92,0xc7,0x3b,0x10,0xd0,0x27,0xb3,0x60,0x79};
    static int          borrow52         = 0;
    mpz_from_bytes(minuend, minuend52, 4);
    mpz_from_bytes(subtrahend, subtrahend52, 4);
    borrow = mpz_sub_borrow(sum, minuend, subtrahend, 0, 4);
    mpz_to_bytes(differencedata, sum, 4);
    if (std::memcmp(sum52, differencedata, 32) != 0 || borrow52 != borrow)
    {
        throw std::runtime_error("err in x64::mpz_sub_borrow");
    }

    static std::uint8_t minuend53[32]    = {0xab,0x88,0xbc,0x05,0x33,0x23,0x8a,0x9f,0x16,0xe8,0xb5,0xd4,0x36,0x67,0x97,0xe8,0x73,0xdf,0x3b,0x93,0x67,0x74,0x47,0x97,0x51,0x92,0x00,0xbd,0x3b,0x3b,0xb5,0x77};
    static std::uint8_t subtrahend53[32] = {0x68,0x15,0xe7,0x5e,0xcd,0x50,0x63,0x31,0x77,0x55,0x3f,0xe8,0x05,0xbb,0x03,0x2c,0x64,0x12,0x95,0x19,0x71,0x79,0x5b,0x5e,0x7e,0x2e,0xfe,0xa8,0xb8,0x09,0xb1,0x85};
    static std::uint8_t sum53[32]        = {0x43,0x72,0xd4,0xa6,0x65,0xd3,0x27,0x6d,0x9f,0x93,0x75,0xec,0x30,0xac,0x94,0xbc,0x0f,0xcc,0xa6,0x79,0xf5,0xfa,0xec,0x38,0xd3,0x63,0x02,0x14,0x83,0x32,0x03,0xf2};
    static int          borrow53         = 0;
    mpz_from_bytes(minuend, minuend53, 4);
    mpz_from_bytes(subtrahend, subtrahend53, 4);
    borrow = mpz_sub_borrow(sum, minuend, subtrahend, 0, 4);
    mpz_to_bytes(differencedata, sum, 4);
    if (std::memcmp(sum53, differencedata, 32) != 0 || borrow53 != borrow)
    {
        throw std::runtime_error("err in x64::mpz_sub_borrow");
    }

    static std::uint8_t minuend54[32]    = {0xf5,0xd2,0x2a,0xf3,0x18,0xc2,0x45,0x38,0x57,0x94,0x79,0xf9,0x20,0x1b,0xe1,0xb0,0x36,0x0c,0x7d,0x9a,0xd3,0xee,0x3a,0x56,0x5d,0x8f,0xe9,0x8e,0x0b,0x7f,0x36,0x01};
    static std::uint8_t subtrahend54[32] = {0x90,0x3d,0x5b,0xcd,0xcd,0x9a,0x61,0x1a,0xc1,0xff,0x9e,0xfb,0x1b,0x72,0x1e,0x57,0xae,0xcc,0x17,0x75,0x8a,0x01,0x29,0xa8,0x92,0x59,0xea,0x32,0xfe,0xaa,0xf9,0x3e};
    static std::uint8_t sum54[32]        = {0x65,0x94,0xcf,0x25,0x4b,0x27,0xe4,0x1d,0x95,0x94,0xda,0xfe,0x04,0xa9,0xc3,0x58,0x87,0x40,0x66,0x25,0x49,0xed,0x10,0xad,0xcb,0x35,0xff,0x5b,0x0c,0xd4,0x3c,0xc3};
    static int          borrow54         = 0;
    mpz_from_bytes(minuend, minuend54, 4);
    mpz_from_bytes(subtrahend, subtrahend54, 4);
    borrow = mpz_sub_borrow(sum, minuend, subtrahend, 0, 4);
    mpz_to_bytes(differencedata, sum, 4);
    if (std::memcmp(sum54, differencedata, 32) != 0 || borrow54 != borrow)
    {
        throw std::runtime_error("err in x64::mpz_sub_borrow");
    }

    static std::uint8_t minuend55[32]    = {0x05,0xeb,0x66,0x6b,0x7c,0x4e,0x6e,0xaa,0x20,0x05,0x61,0x8e,0x30,0xa1,0x2d,0x2c,0xe7,0xd9,0xa5,0xd5,0x7a,0x27,0x8e,0xc7,0x24,0xed,0x29,0x5c,0xf5,0x28,0xd4,0xd8};
    static std::uint8_t subtrahend55[32] = {0x01,0xe3,0x10,0xc7,0x76,0xf7,0xf4,0x53,0xd9,0xa0,0xb3,0x49,0x23,0x87,0xc5,0x9b,0x92,0x99,0x99,0xee,0x3f,0xec,0x05,0xb8,0x90,0x33,0x81,0xf8,0x63,0x06,0x2a,0x46};
    static std::uint8_t sum55[32]        = {0x04,0x08,0x55,0xa4,0x05,0x56,0x7a,0x56,0x46,0x64,0xae,0x45,0x0d,0x19,0x67,0x91,0x55,0x40,0x0b,0xe7,0x3a,0x3b,0x89,0x0e,0x94,0xb9,0xa7,0x64,0x92,0x22,0xaa,0x92};
    static int          borrow55         = 0;
    mpz_from_bytes(minuend, minuend55, 4);
    mpz_from_bytes(subtrahend, subtrahend55, 4);
    borrow = mpz_sub_borrow(sum, minuend, subtrahend, 0, 4);
    mpz_to_bytes(differencedata, sum, 4);
    if (std::memcmp(sum55, differencedata, 32) != 0 || borrow55 != borrow)
    {
        throw std::runtime_error("err in x64::mpz_sub_borrow");
    }

    static std::uint8_t minuend56[32]    = {0x1e,0xa4,0xd5,0x37,0x40,0xd3,0x86,0xab,0x64,0x69,0x7a,0x82,0x98,0x3d,0x45,0x31,0x00,0x3a,0x7e,0xc8,0x45,0x09,0xdf,0x64,0x79,0x1f,0x6f,0x9d,0x12,0xed,0x84,0x51};
    static std::uint8_t subtrahend56[32] = {0x87,0x6d,0xfa,0xbd,0xc1,0xe6,0xd6,0x0b,0x70,0x38,0x49,0x5d,0x06,0x49,0xf7,0x10,0x62,0x82,0x2d,0x43,0xeb,0xcb,0x5a,0x32,0x57,0x25,0xe3,0x09,0x3a,0x40,0x64,0x65};
    static std::uint8_t sum56[32]        = {0x97,0x36,0xda,0x79,0x7e,0xec,0xb0,0x9f,0xf4,0x31,0x31,0x25,0x91,0xf3,0x4e,0x20,0x9d,0xb8,0x51,0x84,0x59,0x3e,0x85,0x32,0x21,0xf9,0x8c,0x93,0xd8,0xad,0x1f,0xec};
    static int          borrow56         = -1;
    mpz_from_bytes(minuend, minuend56, 4);
    mpz_from_bytes(subtrahend, subtrahend56, 4);
    borrow = mpz_sub_borrow(sum, minuend, subtrahend, 0, 4);
    mpz_to_bytes(differencedata, sum, 4);
    if (std::memcmp(sum56, differencedata, 32) != 0 || borrow56 != borrow)
    {
        throw std::runtime_error("err in x64::mpz_sub_borrow");
    }

    static std::uint8_t minuend57[32]    = {0x0e,0x85,0x37,0xd2,0x7a,0x6b,0x8b,0x08,0x62,0xa0,0xa4,0x2a,0x58,0x58,0xb2,0x30,0x32,0xf6,0xa7,0xcf,0x9c,0x44,0x25,0x94,0x0f,0x79,0x46,0x98,0xb8,0x82,0x48,0xa7};
    static std::uint8_t subtrahend57[32] = {0xa1,0x91,0x4a,0x1a,0xb4,0x93,0xa5,0x5b,0x0a,0x54,0x32,0xd8,0xd4,0xbc,0xef,0x3a,0x48,0x79,0xb9,0x02,0x74,0x0f,0x9e,0x1e,0x32,0x2b,0xad,0xda,0x60,0x6d,0xd3,0xdf};
    static std::uint8_t sum57[32]        = {0x6c,0xf3,0xed,0xb7,0xc5,0xd7,0xe5,0xad,0x58,0x4c,0x71,0x51,0x83,0x9b,0xc2,0xf5,0xea,0x7c,0xee,0xcd,0x28,0x34,0x87,0x75,0xdd,0x4d,0x98,0xbe,0x58,0x14,0x74,0xc8};
    static int          borrow57         = -1;
    mpz_from_bytes(minuend, minuend57, 4);
    mpz_from_bytes(subtrahend, subtrahend57, 4);
    borrow = mpz_sub_borrow(sum, minuend, subtrahend, 0, 4);
    mpz_to_bytes(differencedata, sum, 4);
    if (std::memcmp(sum57, differencedata, 32) != 0 || borrow57 != borrow)
    {
        throw std::runtime_error("err in x64::mpz_sub_borrow");
    }

    static std::uint8_t minuend58[32]    = {0xd5,0xaf,0x5b,0xc9,0x90,0x5c,0x3c,0x4f,0xbb,0x74,0x62,0x96,0x54,0xf6,0xd4,0x59,0x59,0x9d,0x75,0x1a,0x8d,0xd7,0xb3,0x65,0x95,0x25,0xba,0x03,0x98,0x58,0x26,0x3a};
    static std::uint8_t subtrahend58[32] = {0x2c,0x8d,0xcb,0x54,0x21,0x10,0x1d,0x63,0x00,0x57,0x73,0xa4,0x69,0xbd,0x53,0x73,0x78,0xe6,0x14,0xaf,0x09,0x33,0xe0,0xfb,0x52,0xa5,0xe4,0xc4,0x2e,0x5a,0xe1,0x01};
    static std::uint8_t sum58[32]        = {0xa9,0x21,0x90,0x75,0x6f,0x4c,0x1e,0xec,0xbb,0x1c,0xee,0xf1,0xeb,0x39,0x80,0xe5,0xe0,0xb7,0x60,0x6b,0x84,0xa3,0xd2,0x6a,0x42,0x7f,0xd5,0x3f,0x69,0xfd,0x45,0x39};
    static int          borrow58         = 0;
    mpz_from_bytes(minuend, minuend58, 4);
    mpz_from_bytes(subtrahend, subtrahend58, 4);
    borrow = mpz_sub_borrow(sum, minuend, subtrahend, 0, 4);
    mpz_to_bytes(differencedata, sum, 4);
    if (std::memcmp(sum58, differencedata, 32) != 0 || borrow58 != borrow)
    {
        throw std::runtime_error("err in x64::mpz_sub_borrow");
    }

    static std::uint8_t minuend59[32]    = {0x43,0x22,0xb5,0x1b,0x1d,0x2a,0x4b,0x86,0x22,0x1d,0xa5,0xf4,0x6c,0x93,0x26,0x3b,0xb1,0xf8,0xda,0x31,0x55,0xbf,0xff,0xf7,0x12,0x81,0xe1,0x6b,0x55,0x61,0x2b,0x15};
    static std::uint8_t subtrahend59[32] = {0xef,0x54,0xaa,0x81,0x38,0x41,0x09,0x56,0x14,0x93,0x37,0x52,0x64,0x03,0xe2,0xfb,0xe5,0x4a,0x9e,0xfa,0x08,0xdc,0xf3,0x3c,0x1c,0xc9,0x07,0xe2,0x79,0xb3,0x3d,0x6a};
    static std::uint8_t sum59[32]        = {0x53,0xce,0x0a,0x99,0xe4,0xe9,0x42,0x30,0x0d,0x8a,0x6e,0xa2,0x08,0x8f,0x43,0x3f,0xcc,0xae,0x3b,0x37,0x4c,0xe3,0x0c,0xba,0xf5,0xb8,0xd9,0x88,0xdb,0xad,0xed,0xab};
    static int          borrow59         = -1;
    mpz_from_bytes(minuend, minuend59, 4);
    mpz_from_bytes(subtrahend, subtrahend59, 4);
    borrow = mpz_sub_borrow(sum, minuend, subtrahend, 0, 4);
    mpz_to_bytes(differencedata, sum, 4);
    if (std::memcmp(sum59, differencedata, 32) != 0 || borrow59 != borrow)
    {
        throw std::runtime_error("err in x64::mpz_sub_borrow");
    }

    static std::uint8_t minuend60[32]    = {0x03,0xbb,0x3b,0x05,0xd5,0xef,0x03,0x6a,0xfd,0xa4,0x90,0xf8,0x44,0x4c,0x83,0xcf,0x40,0xf9,0xfa,0x1c,0xb6,0x8a,0xdb,0x17,0xd3,0xd3,0xb4,0xc7,0x66,0x56,0xd8,0x9f};
    static std::uint8_t subtrahend60[32] = {0xab,0x9a,0xab,0x5c,0xb0,0x74,0x49,0xb2,0x8c,0xca,0x66,0xfd,0xd8,0xb3,0xa7,0xfd,0xfd,0xdb,0x51,0xc6,0xa2,0xdf,0x48,0x19,0x30,0x29,0xab,0xb3,0x55,0x41,0x8b,0x82};
    static std::uint8_t sum60[32]        = {0x58,0x20,0x8f,0xa9,0x25,0x7a,0xb9,0xb8,0x70,0xda,0x29,0xfa,0x6b,0x98,0xdb,0xd1,0x43,0x1e,0xa8,0x56,0x13,0xab,0x92,0xfe,0xa3,0xaa,0x09,0x14,0x11,0x15,0x4d,0x1d};
    static int          borrow60         = -1;
    mpz_from_bytes(minuend, minuend60, 4);
    mpz_from_bytes(subtrahend, subtrahend60, 4);
    borrow = mpz_sub_borrow(sum, minuend, subtrahend, 0, 4);
    mpz_to_bytes(differencedata, sum, 4);
    if (std::memcmp(sum60, differencedata, 32) != 0 || borrow60 != borrow)
    {
        throw std::runtime_error("err in x64::mpz_sub_borrow");
    }

    static std::uint8_t minuend61[32]    = {0x6a,0x68,0x9b,0xe5,0xf3,0x92,0xc0,0x98,0x54,0x96,0x50,0xfc,0xbd,0x11,0x1f,0xb0,0xb8,0x18,0xaa,0xf3,0x55,0xcb,0xbd,0x10,0x2f,0x9f,0x90,0x11,0xd7,0x96,0xdd,0x1e};
    static std::uint8_t subtrahend61[32] = {0x49,0xb8,0x8b,0x8a,0x9c,0x77,0x66,0xdd,0xad,0x95,0xea,0x4d,0x58,0x4c,0xae,0x64,0xf6,0x7c,0xf8,0xd6,0xfe,0xc6,0x85,0x6f,0x3b,0xc8,0x84,0xe4,0xbe,0x61,0xcb,0x8b};
    static std::uint8_t sum61[32]        = {0x20,0xb0,0x10,0x5b,0x57,0x1b,0x59,0xba,0xa7,0x00,0x66,0xaf,0x64,0xc4,0x71,0x4b,0xc1,0x9b,0xb2,0x1c,0x57,0x05,0x37,0xa0,0xf3,0xd7,0x0b,0x2d,0x19,0x35,0x11,0x93};
    static int          borrow61         = 0;
    mpz_from_bytes(minuend, minuend61, 4);
    mpz_from_bytes(subtrahend, subtrahend61, 4);
    borrow = mpz_sub_borrow(sum, minuend, subtrahend, 0, 4);
    mpz_to_bytes(differencedata, sum, 4);
    if (std::memcmp(sum61, differencedata, 32) != 0 || borrow61 != borrow)
    {
        throw std::runtime_error("err in x64::mpz_sub_borrow");
    }

    static std::uint8_t minuend62[32]    = {0xcf,0xc0,0x91,0xae,0x1d,0x57,0x75,0xd0,0x00,0x6e,0xa2,0xb9,0x91,0x63,0xfa,0x8a,0x5d,0xdc,0x70,0xa9,0xb0,0xb5,0xfe,0x60,0xf3,0x1b,0x93,0x38,0xa3,0x65,0xfe,0x86};
    static std::uint8_t subtrahend62[32] = {0x44,0x5a,0xe9,0xf2,0x6f,0x2a,0x18,0xc0,0x12,0x5b,0x7b,0x08,0x4a,0x38,0xf2,0xc4,0x3f,0x2d,0xc0,0x4b,0x52,0xe5,0x70,0xac,0x12,0xd2,0x40,0x7a,0x13,0x74,0x97,0xad};
    static std::uint8_t sum62[32]        = {0x8b,0x65,0xa7,0xbb,0xae,0x2d,0x5d,0x0f,0xee,0x13,0x27,0xb1,0x47,0x2b,0x07,0xc6,0x1e,0xae,0xb0,0x5e,0x5d,0xd0,0x8d,0xb4,0xe0,0x49,0x52,0xbe,0x8f,0xf1,0x66,0xd9};
    static int          borrow62         = 0;
    mpz_from_bytes(minuend, minuend62, 4);
    mpz_from_bytes(subtrahend, subtrahend62, 4);
    borrow = mpz_sub_borrow(sum, minuend, subtrahend, 0, 4);
    mpz_to_bytes(differencedata, sum, 4);
    if (std::memcmp(sum62, differencedata, 32) != 0 || borrow62 != borrow)
    {
        throw std::runtime_error("err in x64::mpz_sub_borrow");
    }

    static std::uint8_t minuend63[32]    = {0x32,0x0c,0xf0,0xa0,0xc3,0xa1,0x43,0x5c,0xa4,0x42,0x43,0xe0,0x38,0x54,0x1d,0xe0,0x68,0x53,0x96,0x65,0x3d,0xce,0x22,0x33,0xa7,0xbb,0x37,0xb1,0x10,0xa9,0x18,0x9b};
    static std::uint8_t subtrahend63[32] = {0xe7,0xf7,0x7a,0xe9,0xeb,0x5a,0xdd,0x67,0x8d,0x11,0x86,0x98,0xf4,0xe8,0xf3,0x03,0xf7,0x5e,0xcf,0xf3,0xa4,0xfe,0xb2,0xc5,0x7d,0x33,0x7c,0xa4,0x6e,0x8c,0xd6,0x23};
    static std::uint8_t sum63[32]        = {0x4a,0x15,0x75,0xb6,0xd8,0x46,0x65,0xf5,0x17,0x30,0xbd,0x47,0x43,0x6b,0x2a,0xdc,0x70,0xf4,0xc6,0x71,0x98,0xcf,0x6f,0x6e,0x2a,0x87,0xbb,0x0c,0xa2,0x1c,0x42,0x78};
    static int          borrow63         = -1;
    mpz_from_bytes(minuend, minuend63, 4);
    mpz_from_bytes(subtrahend, subtrahend63, 4);
    borrow = mpz_sub_borrow(sum, minuend, subtrahend, 0, 4);
    mpz_to_bytes(differencedata, sum, 4);
    if (std::memcmp(sum63, differencedata, 32) != 0 || borrow63 != borrow)
    {
        throw std::runtime_error("err in x64::mpz_sub_borrow");
    }

    static std::uint8_t minuend64[32]    = {0xed,0x01,0x6f,0x51,0xdf,0x1b,0x05,0x16,0x5e,0xb6,0x93,0xd4,0x94,0x93,0xa6,0x22,0xa1,0xe4,0x3e,0x58,0xa1,0x38,0xca,0x84,0xce,0xdd,0xe7,0x44,0x70,0x25,0xe2,0x95};
    static std::uint8_t subtrahend64[32] = {0xc5,0x42,0x9a,0x37,0x82,0x5f,0xa1,0x83,0xf7,0x38,0x46,0xa3,0xe0,0x7f,0x58,0x20,0x80,0x62,0xf1,0xb6,0x2e,0xf3,0x85,0xf3,0x8e,0x0f,0x3b,0x60,0x73,0x4d,0xc3,0x0d};
    static std::uint8_t sum64[32]        = {0x27,0xbe,0xd5,0x1a,0x5c,0xbb,0x63,0x92,0x67,0x7e,0x4d,0x30,0xb4,0x14,0x4e,0x02,0x21,0x81,0x4c,0xa2,0x72,0x45,0x44,0x91,0x40,0xce,0xab,0xe3,0xfc,0xd8,0x1f,0x88};
    static int          borrow64         = 0;
    mpz_from_bytes(minuend, minuend64, 4);
    mpz_from_bytes(subtrahend, subtrahend64, 4);
    borrow = mpz_sub_borrow(sum, minuend, subtrahend, 0, 4);
    mpz_to_bytes(differencedata, sum, 4);
    if (std::memcmp(sum64, differencedata, 32) != 0 || borrow64 != borrow)
    {
        throw std::runtime_error("err in x64::mpz_sub_borrow");
    }

    static std::uint8_t minuend65[32]    = {0x96,0x61,0x53,0xe7,0xc9,0xa0,0x17,0x25,0x0f,0x4c,0x96,0xcd,0x4f,0xef,0x26,0x89,0x44,0x4e,0xde,0xf6,0xd2,0xea,0x29,0xcd,0xc5,0x49,0x6e,0xdd,0x81,0x8d,0x0e,0x77};
    static std::uint8_t subtrahend65[32] = {0x14,0x94,0xe6,0xce,0xb6,0xe2,0x53,0x3f,0x3a,0x66,0x45,0x9f,0xa6,0x2e,0x82,0xba,0x11,0x41,0xcb,0x82,0x96,0x40,0x87,0xc9,0xcd,0x73,0x06,0x05,0xf5,0xac,0xa8,0x39};
    static std::uint8_t sum65[32]        = {0x81,0xcc,0x6d,0x19,0x12,0xbd,0xc3,0xe5,0xd4,0xe6,0x51,0x2d,0xa9,0xc0,0xa3,0xcf,0x33,0x0d,0x13,0x74,0x3c,0xa9,0xa2,0x03,0xf7,0xd6,0x68,0xd7,0x8b,0xe0,0x66,0x3e};
    static int          borrow65         = 0;
    mpz_from_bytes(minuend, minuend65, 4);
    mpz_from_bytes(subtrahend, subtrahend65, 4);
    borrow = mpz_sub_borrow(sum, minuend, subtrahend, 0, 4);
    mpz_to_bytes(differencedata, sum, 4);
    if (std::memcmp(sum65, differencedata, 32) != 0 || borrow65 != borrow)
    {
        throw std::runtime_error("err in x64::mpz_sub_borrow");
    }

    static std::uint8_t minuend66[32]    = {0x41,0x4d,0xb5,0x98,0x33,0x6a,0x57,0xc4,0xde,0x81,0x8e,0xd1,0x63,0xf3,0x2a,0x8f,0xcd,0x03,0x2a,0x19,0x6b,0x17,0x2a,0x5d,0xe0,0xd6,0x5c,0xe3,0xf4,0x8a,0x82,0x4b};
    static std::uint8_t subtrahend66[32] = {0x1a,0xfd,0x2f,0x31,0xd5,0xb9,0x50,0xbb,0x3d,0x05,0xd6,0xc7,0xae,0x37,0x06,0x12,0x9c,0xbc,0x72,0xc5,0x66,0x07,0x31,0x00,0x89,0x86,0x54,0x5a,0x89,0x19,0x81,0x3a};
    static std::uint8_t sum66[32]        = {0x26,0x50,0x86,0x66,0x5d,0xb1,0x07,0x09,0xa1,0x7b,0xb8,0x09,0xb5,0xbc,0x24,0x7d,0x30,0x46,0xb7,0x54,0x05,0x0f,0xf9,0x5d,0x57,0x50,0x08,0x89,0x6b,0x71,0x01,0x11};
    static int          borrow66         = 0;
    mpz_from_bytes(minuend, minuend66, 4);
    mpz_from_bytes(subtrahend, subtrahend66, 4);
    borrow = mpz_sub_borrow(sum, minuend, subtrahend, 0, 4);
    mpz_to_bytes(differencedata, sum, 4);
    if (std::memcmp(sum66, differencedata, 32) != 0 || borrow66 != borrow)
    {
        throw std::runtime_error("err in x64::mpz_sub_borrow");
    }

    static std::uint8_t minuend67[32]    = {0x37,0xea,0x50,0x10,0x9e,0x35,0x81,0x04,0x1e,0x5a,0x1f,0xff,0xe2,0xaa,0xb8,0x8e,0x2a,0x78,0x24,0x46,0xf3,0xcc,0xbd,0x82,0x87,0xed,0xa9,0x7c,0x4e,0xc5,0x38,0xb1};
    static std::uint8_t subtrahend67[32] = {0xe0,0x6f,0x81,0xf9,0xe4,0xa5,0x32,0xb3,0xc7,0x99,0x90,0xa5,0xb7,0x0d,0x7c,0x85,0x4e,0x95,0x9d,0x41,0x03,0xe4,0xe5,0x0e,0x88,0xf8,0x50,0x72,0x49,0x86,0x4a,0x7e};
    static std::uint8_t sum67[32]        = {0x57,0x7a,0xce,0x16,0xb9,0x90,0x4e,0x50,0x56,0xc0,0x8f,0x5a,0x2b,0x9d,0x3c,0x08,0xdb,0xe2,0x87,0x05,0xef,0xe7,0xd8,0x73,0xfe,0xf5,0x59,0x0a,0x05,0x3e,0xee,0x33};
    static int          borrow67         = -1;
    mpz_from_bytes(minuend, minuend67, 4);
    mpz_from_bytes(subtrahend, subtrahend67, 4);
    borrow = mpz_sub_borrow(sum, minuend, subtrahend, 0, 4);
    mpz_to_bytes(differencedata, sum, 4);
    if (std::memcmp(sum67, differencedata, 32) != 0 || borrow67 != borrow)
    {
        throw std::runtime_error("err in x64::mpz_sub_borrow");
    }

    static std::uint8_t minuend68[32]    = {0x44,0xf7,0x04,0x50,0x38,0x4c,0x7d,0x8e,0x26,0x27,0xdf,0xcc,0x72,0xdc,0x06,0xb4,0x26,0x0d,0xad,0x9a,0x08,0xfb,0xf8,0x51,0x3e,0x8f,0xe4,0x56,0x35,0x47,0x6e,0xb9};
    static std::uint8_t subtrahend68[32] = {0x64,0x3e,0x47,0xb7,0x5a,0xaf,0xdb,0x88,0xa6,0x45,0x34,0xde,0x11,0x1e,0x91,0x74,0x6e,0x73,0x2d,0xeb,0x6d,0x91,0x9a,0xea,0xf2,0x48,0xfc,0xb1,0x4b,0x36,0xd1,0x50};
    static std::uint8_t sum68[32]        = {0xe0,0xb8,0xbc,0x98,0xdd,0x9c,0xa2,0x05,0x7f,0xe2,0xaa,0xee,0x61,0xbd,0x75,0x3f,0xb7,0x9a,0x7f,0xae,0x9b,0x6a,0x5d,0x66,0x4c,0x46,0xe7,0xa4,0xea,0x10,0x9d,0x69};
    static int          borrow68         = -1;
    mpz_from_bytes(minuend, minuend68, 4);
    mpz_from_bytes(subtrahend, subtrahend68, 4);
    borrow = mpz_sub_borrow(sum, minuend, subtrahend, 0, 4);
    mpz_to_bytes(differencedata, sum, 4);
    if (std::memcmp(sum68, differencedata, 32) != 0 || borrow68 != borrow)
    {
        throw std::runtime_error("err in x64::mpz_sub_borrow");
    }

    static std::uint8_t minuend69[32]    = {0x2b,0x27,0xa5,0xe7,0x5e,0x4a,0xc3,0xd7,0x4d,0x41,0x0c,0x7d,0x6d,0x35,0x45,0xf0,0xd6,0xed,0x0b,0xfc,0xea,0x3b,0x29,0xbe,0x9e,0xd8,0xa4,0xc1,0x80,0xf5,0x5f,0xa0};
    static std::uint8_t subtrahend69[32] = {0x56,0xf4,0xb8,0x6d,0x6c,0xf6,0x21,0xa9,0xf9,0x45,0xac,0x6d,0xe0,0x8b,0x51,0xe8,0x3a,0x65,0x7f,0x20,0xa8,0xab,0xd0,0xae,0xb8,0xbc,0x76,0x14,0xaf,0x7b,0x0e,0x7b};
    static std::uint8_t sum69[32]        = {0xd4,0x32,0xed,0x79,0xf1,0x54,0xa2,0x2d,0x53,0xfb,0x60,0x0f,0x8c,0xa9,0xf4,0x08,0x9c,0x87,0x8c,0xdc,0x41,0x8f,0x59,0x0f,0xe6,0x1c,0x2e,0xac,0xd1,0x7a,0x51,0x25};
    static int          borrow69         = -1;
    mpz_from_bytes(minuend, minuend69, 4);
    mpz_from_bytes(subtrahend, subtrahend69, 4);
    borrow = mpz_sub_borrow(sum, minuend, subtrahend, 0, 4);
    mpz_to_bytes(differencedata, sum, 4);
    if (std::memcmp(sum69, differencedata, 32) != 0 || borrow69 != borrow)
    {
        throw std::runtime_error("err in x64::mpz_sub_borrow");
    }

    static std::uint8_t minuend70[32]    = {0xbd,0x86,0x32,0x84,0x8b,0x4b,0x9f,0x45,0xb9,0xf6,0xd6,0x9a,0x0a,0x71,0xbc,0xa4,0x1d,0xa8,0x55,0x2b,0x1e,0xfa,0xd7,0x1c,0xde,0xab,0x4a,0x00,0x15,0xe3,0x3f,0xcc};
    static std::uint8_t subtrahend70[32] = {0x5d,0xd1,0xe0,0x2c,0x6e,0x33,0x21,0x1c,0xe5,0xf7,0x95,0xe1,0xf2,0x7b,0xa8,0x0e,0x35,0x13,0xf5,0x05,0x22,0x74,0xc6,0x85,0xec,0x9c,0x59,0x45,0xff,0x19,0xfe,0xfd};
    static std::uint8_t sum70[32]        = {0x5f,0xb4,0x52,0x58,0x1d,0x18,0x7e,0x28,0xd3,0xff,0x40,0xb8,0x17,0xf6,0x14,0x95,0xe8,0x94,0x60,0x25,0xfc,0x86,0x10,0x96,0xf2,0x0e,0xf0,0xba,0x16,0xc9,0x40,0xcf};
    static int          borrow70         = 0;
    mpz_from_bytes(minuend, minuend70, 4);
    mpz_from_bytes(subtrahend, subtrahend70, 4);
    borrow = mpz_sub_borrow(sum, minuend, subtrahend, 0, 4);
    mpz_to_bytes(differencedata, sum, 4);
    if (std::memcmp(sum70, differencedata, 32) != 0 || borrow70 != borrow)
    {
        throw std::runtime_error("err in x64::mpz_sub_borrow");
    }

    static std::uint8_t minuend71[32]    = {0xca,0x72,0xa8,0xe6,0x6c,0xa8,0x25,0xdc,0xe0,0x81,0xdb,0xd3,0x72,0x8a,0x34,0xe7,0xc2,0x6e,0x4f,0x56,0x35,0xcd,0x21,0x19,0x56,0x5f,0x3d,0xb6,0x07,0xf7,0xad,0x96};
    static std::uint8_t subtrahend71[32] = {0x0d,0xb1,0x79,0x19,0x74,0x7d,0x61,0x68,0x5a,0xcf,0x07,0x41,0x3b,0x27,0x15,0x1d,0x53,0xb7,0x21,0x94,0xe6,0xa6,0x4c,0xb4,0x76,0xd5,0x04,0x30,0xe9,0x39,0x50,0xe4};
    static std::uint8_t sum71[32]        = {0xbc,0xc1,0x2f,0xcc,0xf8,0x2a,0xc4,0x74,0x85,0xb2,0xd4,0x92,0x37,0x63,0x1f,0xca,0x6e,0xb7,0x2d,0xc1,0x4f,0x26,0xd4,0x64,0xdf,0x8a,0x39,0x85,0x1e,0xbe,0x5c,0xb2};
    static int          borrow71         = 0;
    mpz_from_bytes(minuend, minuend71, 4);
    mpz_from_bytes(subtrahend, subtrahend71, 4);
    borrow = mpz_sub_borrow(sum, minuend, subtrahend, 0, 4);
    mpz_to_bytes(differencedata, sum, 4);
    if (std::memcmp(sum71, differencedata, 32) != 0 || borrow71 != borrow)
    {
        throw std::runtime_error("err in x64::mpz_sub_borrow");
    }

    static std::uint8_t minuend72[32]    = {0x86,0xa3,0xe3,0xad,0x9f,0x16,0x44,0x2b,0xa2,0xdc,0xd7,0x1d,0x4b,0x38,0xc0,0x15,0x48,0xd6,0x93,0x5f,0x69,0xe5,0x47,0x97,0x90,0xcd,0xa6,0xac,0xc9,0x4c,0x8c,0xc9};
    static std::uint8_t subtrahend72[32] = {0x32,0x99,0x5c,0x14,0xde,0xe9,0x7c,0xab,0x2c,0xb3,0x59,0x1f,0x92,0xe1,0x67,0x25,0x53,0x17,0x54,0x77,0x53,0x35,0xb8,0x33,0x94,0x47,0x99,0xf8,0x9b,0x55,0xa5,0x4b};
    static std::uint8_t sum72[32]        = {0x54,0x0a,0x87,0x98,0xc0,0x2c,0xc7,0x80,0x76,0x29,0x7d,0xfd,0xb8,0x57,0x58,0xef,0xf5,0xbf,0x3e,0xe8,0x16,0xaf,0x8f,0x63,0xfc,0x86,0x0c,0xb4,0x2d,0xf6,0xe7,0x7e};
    static int          borrow72         = 0;
    mpz_from_bytes(minuend, minuend72, 4);
    mpz_from_bytes(subtrahend, subtrahend72, 4);
    borrow = mpz_sub_borrow(sum, minuend, subtrahend, 0, 4);
    mpz_to_bytes(differencedata, sum, 4);
    if (std::memcmp(sum72, differencedata, 32) != 0 || borrow72 != borrow)
    {
        throw std::runtime_error("err in x64::mpz_sub_borrow");
    }

    static std::uint8_t minuend73[32]    = {0x70,0xd7,0xf5,0x46,0xba,0xdb,0x23,0x33,0xb8,0x96,0x1c,0x0a,0x66,0x78,0x98,0x1f,0xfe,0xe7,0xb1,0x00,0x6e,0xa3,0xbb,0x5f,0x58,0x52,0x57,0xb9,0xdb,0x3f,0x1e,0x3a};
    static std::uint8_t subtrahend73[32] = {0x89,0xcd,0xc6,0x8f,0xfd,0xf3,0x6a,0xe7,0xa8,0xfa,0x73,0x17,0xf9,0x65,0x0d,0x9a,0x64,0xbe,0x77,0x0a,0x8b,0xfb,0x36,0x31,0xdd,0xa9,0x44,0x7d,0x11,0xef,0x24,0x1f};
    static std::uint8_t sum73[32]        = {0xe7,0x0a,0x2e,0xb6,0xbc,0xe7,0xb8,0x4c,0x0f,0x9b,0xa8,0xf2,0x6d,0x13,0x8a,0x85,0x9a,0x29,0x39,0xf5,0xe2,0xa8,0x85,0x2d,0x7a,0xa9,0x13,0x3c,0xc9,0x4f,0xfa,0x1b};
    static int          borrow73         = -1;
    mpz_from_bytes(minuend, minuend73, 4);
    mpz_from_bytes(subtrahend, subtrahend73, 4);
    borrow = mpz_sub_borrow(sum, minuend, subtrahend, 0, 4);
    mpz_to_bytes(differencedata, sum, 4);
    if (std::memcmp(sum73, differencedata, 32) != 0 || borrow73 != borrow)
    {
        throw std::runtime_error("err in x64::mpz_sub_borrow");
    }

    static std::uint8_t minuend74[32]    = {0x3d,0x75,0x58,0xf8,0x03,0xe4,0x21,0x0b,0x3d,0x69,0xa7,0x0e,0x56,0xe3,0xfc,0xbc,0xaa,0x55,0x48,0xa9,0x49,0xa4,0xc1,0x63,0x7f,0x2f,0xa6,0x17,0x17,0x9c,0x80,0x66};
    static std::uint8_t subtrahend74[32] = {0xa7,0x2e,0xf5,0x4a,0x96,0x68,0x97,0xdc,0xf2,0xb9,0x1b,0x5e,0xc3,0xe3,0x3a,0x89,0x81,0xbf,0xe9,0x74,0xa3,0x47,0x8b,0x13,0xfa,0x37,0x9a,0x75,0x49,0x3e,0x9f,0xe8};
    static std::uint8_t sum74[32]        = {0x96,0x46,0x63,0xad,0x6d,0x7b,0x89,0x2e,0x4a,0xb0,0x8b,0xaf,0x93,0x00,0xc2,0x33,0x28,0x95,0x5f,0x34,0xa6,0x5d,0x36,0x4f,0x84,0xf8,0x0b,0xa1,0xce,0x5d,0xe0,0x7e};
    static int          borrow74         = -1;
    mpz_from_bytes(minuend, minuend74, 4);
    mpz_from_bytes(subtrahend, subtrahend74, 4);
    borrow = mpz_sub_borrow(sum, minuend, subtrahend, 0, 4);
    mpz_to_bytes(differencedata, sum, 4);
    if (std::memcmp(sum74, differencedata, 32) != 0 || borrow74 != borrow)
    {
        throw std::runtime_error("err in x64::mpz_sub_borrow");
    }

    static std::uint8_t minuend75[32]    = {0x3e,0x14,0x89,0x9d,0x4d,0xf5,0xb5,0x88,0xc3,0x8d,0x3e,0x8c,0x96,0xed,0x8e,0xb1,0x26,0xfe,0x95,0xb7,0xc1,0xd4,0x58,0xab,0xf7,0x0e,0x8f,0x67,0x0d,0x1a,0x33,0xb9};
    static std::uint8_t subtrahend75[32] = {0xae,0x95,0xb2,0x07,0x6d,0x7a,0x4e,0xf2,0x76,0x92,0x9e,0x8f,0xa7,0x5a,0x8b,0xb7,0x04,0xa2,0xce,0xed,0xcd,0x17,0x12,0x7a,0x4b,0xf4,0xa0,0x3b,0x1c,0x2d,0xbb,0x64};
    static std::uint8_t sum75[32]        = {0x8f,0x7e,0xd7,0x95,0xe0,0x7b,0x66,0x96,0x4c,0xfa,0x9f,0xfc,0xef,0x93,0x02,0xfa,0x22,0x5b,0xc6,0xc9,0xf4,0xbd,0x46,0x31,0xab,0x19,0xef,0x2b,0xf0,0xec,0x78,0x55};
    static int          borrow75         = -1;
    mpz_from_bytes(minuend, minuend75, 4);
    mpz_from_bytes(subtrahend, subtrahend75, 4);
    borrow = mpz_sub_borrow(sum, minuend, subtrahend, 0, 4);
    mpz_to_bytes(differencedata, sum, 4);
    if (std::memcmp(sum75, differencedata, 32) != 0 || borrow75 != borrow)
    {
        throw std::runtime_error("err in x64::mpz_sub_borrow");
    }

    static std::uint8_t minuend76[32]    = {0x6e,0x49,0xba,0xf8,0xb3,0x93,0x4d,0xfd,0x8e,0x92,0x7f,0xf3,0x1a,0xd9,0xbe,0x43,0x8d,0x6b,0x50,0xe6,0x91,0x32,0x2c,0xf2,0xa5,0xd8,0xb1,0xda,0x46,0x00,0x12,0xc6};
    static std::uint8_t subtrahend76[32] = {0x44,0xe5,0xbf,0x25,0x65,0x92,0xcd,0xb0,0x5f,0xba,0x4b,0x46,0x9b,0x78,0x09,0x79,0x99,0x8d,0xf9,0x36,0x1e,0x63,0x9c,0xbb,0xf5,0x6d,0x36,0x51,0xb2,0x37,0xde,0xea};
    static std::uint8_t sum76[32]        = {0x29,0x63,0xfb,0xd3,0x4e,0x00,0x80,0x4d,0x2e,0xd8,0x34,0xac,0x7f,0x61,0xb4,0xc9,0xf3,0xdd,0x57,0xb0,0x72,0xce,0x90,0x36,0xb0,0x6b,0x7b,0x88,0x93,0xc8,0x33,0xdc};
    static int          borrow76         = 0;
    mpz_from_bytes(minuend, minuend76, 4);
    mpz_from_bytes(subtrahend, subtrahend76, 4);
    borrow = mpz_sub_borrow(sum, minuend, subtrahend, 0, 4);
    mpz_to_bytes(differencedata, sum, 4);
    if (std::memcmp(sum76, differencedata, 32) != 0 || borrow76 != borrow)
    {
        throw std::runtime_error("err in x64::mpz_sub_borrow");
    }

    static std::uint8_t minuend77[32]    = {0x9b,0xb4,0x4c,0xb0,0x5a,0x48,0xfe,0x6c,0x58,0x15,0x13,0xd5,0x35,0xac,0xb5,0x69,0xd5,0x89,0xbb,0xd9,0x52,0x55,0x20,0xe2,0xf8,0x38,0x78,0x89,0x94,0xc9,0x6c,0xb5};
    static std::uint8_t subtrahend77[32] = {0x68,0x13,0x2f,0xde,0x89,0x31,0xbc,0xa7,0xc6,0x64,0xe5,0x84,0xe0,0x8d,0xb4,0x83,0x71,0x56,0x46,0x4f,0x2d,0xfe,0xdc,0x6a,0xc2,0x84,0xaf,0xd9,0xb6,0x96,0xbe,0x5d};
    static std::uint8_t sum77[32]        = {0x33,0xa1,0x1c,0xd1,0xd1,0x17,0x41,0xc4,0x91,0xb0,0x2e,0x50,0x55,0x1f,0x00,0xe6,0x64,0x33,0x75,0x8a,0x24,0x56,0x44,0x78,0x35,0xb3,0xc8,0xaf,0xde,0x32,0xae,0x58};
    static int          borrow77         = 0;
    mpz_from_bytes(minuend, minuend77, 4);
    mpz_from_bytes(subtrahend, subtrahend77, 4);
    borrow = mpz_sub_borrow(sum, minuend, subtrahend, 0, 4);
    mpz_to_bytes(differencedata, sum, 4);
    if (std::memcmp(sum77, differencedata, 32) != 0 || borrow77 != borrow)
    {
        throw std::runtime_error("err in x64::mpz_sub_borrow");
    }

    static std::uint8_t minuend78[32]    = {0xc4,0x70,0x4a,0x66,0xf3,0x80,0x2b,0xc5,0x87,0x60,0x03,0x3c,0xd6,0xa2,0x8a,0x82,0xca,0x3c,0x48,0xc4,0x2c,0xe7,0x3b,0x7d,0x19,0x30,0x9d,0xf5,0x89,0x4f,0xad,0x70};
    static std::uint8_t subtrahend78[32] = {0x98,0x6c,0xbc,0xa0,0x60,0xb6,0x2d,0x1e,0xeb,0xf1,0xa6,0xa1,0x6a,0x80,0x07,0xf1,0x50,0xd9,0x15,0x10,0xca,0x6b,0xcc,0xa6,0x4b,0xf5,0xe3,0x88,0xda,0x4a,0x88,0x1f};
    static std::uint8_t sum78[32]        = {0x2c,0x03,0x8d,0xc6,0x92,0xc9,0xfe,0xa6,0x9b,0x6e,0x5c,0x9b,0x6c,0x22,0x82,0x91,0x79,0x63,0x33,0xb3,0x62,0x7b,0x6e,0xd6,0xcd,0x3a,0xba,0x6c,0xaf,0x05,0x25,0x51};
    static int          borrow78         = 0;
    mpz_from_bytes(minuend, minuend78, 4);
    mpz_from_bytes(subtrahend, subtrahend78, 4);
    borrow = mpz_sub_borrow(sum, minuend, subtrahend, 0, 4);
    mpz_to_bytes(differencedata, sum, 4);
    if (std::memcmp(sum78, differencedata, 32) != 0 || borrow78 != borrow)
    {
        throw std::runtime_error("err in x64::mpz_sub_borrow");
    }

    static std::uint8_t minuend79[32]    = {0x22,0x4c,0x15,0xfb,0xa2,0x81,0x54,0xf4,0x07,0x00,0x5a,0x68,0x86,0xc3,0x2a,0x11,0x4e,0x6f,0xdb,0x6b,0x21,0xda,0xca,0xd8,0x36,0x1c,0x78,0x1d,0x65,0x66,0x15,0xfd};
    static std::uint8_t subtrahend79[32] = {0x87,0x48,0xcd,0xe3,0x07,0xee,0x52,0xff,0x76,0xe0,0xf9,0x41,0x8f,0x4c,0xdf,0x23,0x5f,0x73,0xbb,0xd2,0xfb,0xb2,0x05,0x49,0x1d,0xc0,0xdb,0x1d,0x32,0x4b,0x70,0x57};
    static std::uint8_t sum79[32]        = {0x9b,0x03,0x48,0x18,0x9a,0x93,0x01,0xf4,0x90,0x1f,0x61,0x26,0xf7,0x76,0x4a,0xed,0xee,0xfc,0x1f,0x98,0x26,0x28,0xc5,0x8f,0x18,0x5b,0x9d,0x00,0x33,0x1a,0xa5,0xa6};
    static int          borrow79         = -1;
    mpz_from_bytes(minuend, minuend79, 4);
    mpz_from_bytes(subtrahend, subtrahend79, 4);
    borrow = mpz_sub_borrow(sum, minuend, subtrahend, 0, 4);
    mpz_to_bytes(differencedata, sum, 4);
    if (std::memcmp(sum79, differencedata, 32) != 0 || borrow79 != borrow)
    {
        throw std::runtime_error("err in x64::mpz_sub_borrow");
    }

    static std::uint8_t minuend80[32]    = {0xc4,0x7a,0x38,0xd2,0x9f,0xd7,0x94,0x37,0x66,0x52,0xb5,0xac,0xad,0x1b,0xdf,0xed,0x45,0xb3,0x11,0xed,0xe2,0xc9,0x5a,0x9c,0x9d,0xc0,0xcf,0xf9,0x41,0x93,0x40,0x4f};
    static std::uint8_t subtrahend80[32] = {0xe4,0x4b,0x8f,0x95,0x74,0x73,0x83,0x3e,0x53,0x0f,0x55,0x63,0x21,0x33,0x2f,0x41,0x2e,0x3a,0xb1,0x4f,0xc0,0x68,0x4a,0x69,0x57,0xca,0x7f,0xca,0x86,0x86,0x36,0x90};
    static std::uint8_t sum80[32]        = {0xe0,0x2e,0xa9,0x3d,0x2b,0x64,0x10,0xf9,0x13,0x43,0x60,0x49,0x8b,0xe8,0xb0,0xac,0x17,0x78,0x60,0x9e,0x22,0x61,0x10,0x33,0x45,0xf6,0x50,0x2e,0xbb,0x0d,0x09,0xbf};
    static int          borrow80         = -1;
    mpz_from_bytes(minuend, minuend80, 4);
    mpz_from_bytes(subtrahend, subtrahend80, 4);
    borrow = mpz_sub_borrow(sum, minuend, subtrahend, 0, 4);
    mpz_to_bytes(differencedata, sum, 4);
    if (std::memcmp(sum80, differencedata, 32) != 0 || borrow80 != borrow)
    {
        throw std::runtime_error("err in x64::mpz_sub_borrow");
    }

    static std::uint8_t minuend81[32]    = {0xfd,0xe5,0xc2,0xcf,0xaf,0x4f,0x32,0xd2,0x5f,0x0b,0xe0,0x6b,0x09,0x72,0x07,0xac,0xe8,0xe0,0x70,0xc7,0xbf,0x60,0xe5,0x3c,0x8e,0xa9,0x8b,0x87,0x01,0x84,0x22,0x7e};
    static std::uint8_t subtrahend81[32] = {0x3e,0x6d,0x65,0xf7,0xeb,0x44,0xa8,0x03,0x2f,0x87,0xd1,0xc9,0x59,0xc8,0x1b,0xc0,0xa0,0x2b,0x74,0x42,0x9c,0xa8,0x09,0xfc,0x3e,0xf8,0x76,0xf8,0x2f,0x5b,0x51,0xa8};
    static std::uint8_t sum81[32]        = {0xbf,0x78,0x5c,0xd7,0xc4,0x0a,0x8a,0xcf,0x2f,0x84,0x0e,0xa1,0xaf,0xa9,0xeb,0xec,0x48,0xb4,0xfc,0x85,0x22,0xb8,0xdb,0x40,0x4f,0xb1,0x14,0x8e,0xd2,0x28,0xd0,0xd6};
    static int          borrow81         = 0;
    mpz_from_bytes(minuend, minuend81, 4);
    mpz_from_bytes(subtrahend, subtrahend81, 4);
    borrow = mpz_sub_borrow(sum, minuend, subtrahend, 0, 4);
    mpz_to_bytes(differencedata, sum, 4);
    if (std::memcmp(sum81, differencedata, 32) != 0 || borrow81 != borrow)
    {
        throw std::runtime_error("err in x64::mpz_sub_borrow");
    }

    static std::uint8_t minuend82[32]    = {0x46,0xec,0xed,0x14,0x7d,0xfc,0x02,0x73,0x07,0x74,0x8a,0x8d,0x42,0x92,0x71,0x1f,0x46,0x5e,0x8e,0xd0,0x1a,0xff,0x22,0x0d,0xac,0x57,0xbb,0xe5,0xa0,0x3d,0xc0,0x7d};
    static std::uint8_t subtrahend82[32] = {0xe1,0x50,0x7c,0x8b,0x57,0x7c,0x03,0x49,0xc9,0x3a,0xb6,0x3b,0x0a,0x6f,0x7c,0xa7,0x82,0xab,0x6b,0x6c,0x5b,0xd1,0x63,0xa4,0x3c,0xba,0x90,0x53,0x52,0x30,0xe2,0x8a};
    static std::uint8_t sum82[32]        = {0x65,0x9c,0x70,0x89,0x26,0x7f,0xff,0x29,0x3e,0x39,0xd4,0x52,0x38,0x22,0xf4,0x77,0xc3,0xb3,0x23,0x63,0xbf,0x2d,0xbe,0x69,0x6f,0x9d,0x2b,0x92,0x4e,0x0c,0xdd,0xf3};
    static int          borrow82         = -1;
    mpz_from_bytes(minuend, minuend82, 4);
    mpz_from_bytes(subtrahend, subtrahend82, 4);
    borrow = mpz_sub_borrow(sum, minuend, subtrahend, 0, 4);
    mpz_to_bytes(differencedata, sum, 4);
    if (std::memcmp(sum82, differencedata, 32) != 0 || borrow82 != borrow)
    {
        throw std::runtime_error("err in x64::mpz_sub_borrow");
    }

    static std::uint8_t minuend83[32]    = {0x59,0x7c,0x8b,0x12,0xe4,0xe5,0x03,0xe1,0x65,0x99,0x2c,0xaa,0x7a,0x8d,0xdd,0x3e,0x7a,0xbf,0x85,0xa9,0x75,0x48,0xd5,0x6f,0x7b,0xc7,0xbe,0x3a,0xfb,0xc2,0x2b,0x4b};
    static std::uint8_t subtrahend83[32] = {0x18,0x0b,0xe9,0xce,0xc7,0x14,0x22,0xb5,0xd8,0x40,0x1c,0x8d,0x5e,0x09,0x1f,0x2f,0x9e,0xa8,0x5c,0x6d,0x78,0xd3,0xb0,0xcd,0xe1,0x3d,0xba,0x8a,0x43,0x2a,0x81,0x7d};
    static std::uint8_t sum83[32]        = {0x41,0x70,0xa1,0x44,0x1d,0xd0,0xe1,0x2b,0x8d,0x59,0x10,0x1d,0x1c,0x84,0xbe,0x0e,0xdc,0x17,0x29,0x3b,0xfc,0x75,0x24,0xa1,0x9a,0x8a,0x03,0xb0,0xb8,0x97,0xa9,0xce};
    static int          borrow83         = 0;
    mpz_from_bytes(minuend, minuend83, 4);
    mpz_from_bytes(subtrahend, subtrahend83, 4);
    borrow = mpz_sub_borrow(sum, minuend, subtrahend, 0, 4);
    mpz_to_bytes(differencedata, sum, 4);
    if (std::memcmp(sum83, differencedata, 32) != 0 || borrow83 != borrow)
    {
        throw std::runtime_error("err in x64::mpz_sub_borrow");
    }

    static std::uint8_t minuend84[32]    = {0x04,0x4a,0x81,0x9a,0xad,0xf7,0x0a,0xb9,0x19,0x83,0x16,0x99,0x61,0xb4,0xbe,0x33,0xab,0x9a,0xfb,0x40,0x48,0x48,0xd6,0xc6,0x3f,0x58,0x83,0xc3,0x26,0x57,0xce,0x6a};
    static std::uint8_t subtrahend84[32] = {0x2e,0x9d,0x14,0xcc,0x7f,0x76,0x5f,0x52,0x20,0x9c,0x5f,0xab,0x77,0x8b,0x30,0xce,0x4a,0x1b,0xdd,0xca,0x23,0xf8,0x62,0x5f,0x1b,0x11,0x2b,0x46,0x54,0x85,0x85,0x12};
    static std::uint8_t sum84[32]        = {0xd5,0xad,0x6c,0xce,0x2e,0x80,0xab,0x66,0xf8,0xe6,0xb6,0xed,0xea,0x29,0x8d,0x65,0x61,0x7f,0x1d,0x76,0x24,0x50,0x74,0x67,0x24,0x47,0x58,0x7c,0xd1,0xd2,0x49,0x58};
    static int          borrow84         = -1;
    mpz_from_bytes(minuend, minuend84, 4);
    mpz_from_bytes(subtrahend, subtrahend84, 4);
    borrow = mpz_sub_borrow(sum, minuend, subtrahend, 0, 4);
    mpz_to_bytes(differencedata, sum, 4);
    if (std::memcmp(sum84, differencedata, 32) != 0 || borrow84 != borrow)
    {
        throw std::runtime_error("err in x64::mpz_sub_borrow");
    }

    static std::uint8_t minuend85[32]    = {0xbc,0x1f,0x9f,0x8c,0x13,0xdc,0x92,0xec,0x29,0x39,0x71,0x52,0x9d,0x9f,0xdc,0xa1,0x12,0x82,0x25,0x4a,0x89,0x0a,0x7c,0xdc,0xdd,0xaa,0x0f,0xe9,0x02,0x76,0xad,0xa2};
    static std::uint8_t subtrahend85[32] = {0x61,0x94,0x02,0x6a,0x4b,0x45,0xa7,0x26,0x9d,0xe4,0x1a,0x03,0x28,0xc6,0x3c,0x2a,0x44,0x12,0x07,0xa9,0x25,0xc6,0xc3,0x68,0x69,0xdd,0x69,0xf7,0xee,0x1e,0x96,0xf3};
    static std::uint8_t sum85[32]        = {0x5a,0x8b,0x9d,0x21,0xc8,0x96,0xeb,0xc5,0x8b,0x55,0x57,0x4f,0x74,0xd9,0xa0,0x76,0xce,0x70,0x1d,0xa1,0x63,0x43,0xb9,0x74,0x73,0xcc,0xa5,0xf1,0x14,0x58,0x16,0xaf};
    static int          borrow85         = 0;
    mpz_from_bytes(minuend, minuend85, 4);
    mpz_from_bytes(subtrahend, subtrahend85, 4);
    borrow = mpz_sub_borrow(sum, minuend, subtrahend, 0, 4);
    mpz_to_bytes(differencedata, sum, 4);
    if (std::memcmp(sum85, differencedata, 32) != 0 || borrow85 != borrow)
    {
        throw std::runtime_error("err in x64::mpz_sub_borrow");
    }

    static std::uint8_t minuend86[32]    = {0x87,0x9a,0x8f,0x28,0xe5,0x81,0x5f,0xfe,0x72,0xfa,0x6c,0xa0,0x46,0xbf,0xac,0x30,0xd8,0x9f,0x9c,0x85,0x9f,0xe8,0xef,0x39,0xd0,0x91,0xfe,0x89,0x79,0xf8,0x6a,0x72};
    static std::uint8_t subtrahend86[32] = {0xbd,0xbc,0x70,0x5e,0xaf,0xfd,0x34,0xc9,0x91,0xe9,0xa4,0x33,0xa2,0x64,0x08,0xd6,0x7e,0x3e,0x22,0x87,0x35,0x6d,0xea,0xab,0x4d,0xaf,0x10,0x9c,0xfb,0x03,0x52,0x57};
    static std::uint8_t sum86[32]        = {0xc9,0xde,0x1e,0xca,0x35,0x84,0x2b,0x34,0xe1,0x10,0xc8,0x6c,0xa4,0x5b,0xa3,0x5a,0x5a,0x61,0x79,0xfe,0x6a,0x7b,0x04,0x8e,0x82,0xe2,0xed,0xec,0x7e,0xf5,0x18,0x1b};
    static int          borrow86         = -1;
    mpz_from_bytes(minuend, minuend86, 4);
    mpz_from_bytes(subtrahend, subtrahend86, 4);
    borrow = mpz_sub_borrow(sum, minuend, subtrahend, 0, 4);
    mpz_to_bytes(differencedata, sum, 4);
    if (std::memcmp(sum86, differencedata, 32) != 0 || borrow86 != borrow)
    {
        throw std::runtime_error("err in x64::mpz_sub_borrow");
    }

    static std::uint8_t minuend87[32]    = {0xd1,0x01,0x77,0x8c,0x9f,0x73,0x63,0xcc,0x90,0x6f,0x79,0x0d,0xe6,0xcd,0xfe,0x82,0x21,0xe7,0x33,0x13,0xed,0xf2,0x4b,0x99,0x4d,0xfc,0xd7,0xa1,0xa6,0xd0,0xe5,0xfb};
    static std::uint8_t subtrahend87[32] = {0x73,0x6f,0x22,0x7e,0x43,0xd0,0x34,0x79,0x8b,0x00,0x8c,0x57,0x52,0xe9,0xdf,0xa9,0x5f,0x31,0x47,0xc7,0x4f,0xae,0x7c,0x45,0x63,0xef,0x68,0x8d,0x54,0xb7,0xf3,0x32};
    static std::uint8_t sum87[32]        = {0x5d,0x92,0x55,0x0e,0x5b,0xa3,0x2f,0x53,0x05,0x6e,0xec,0xb6,0x93,0xe4,0x1e,0xd8,0xc2,0xb5,0xeb,0x4c,0x9e,0x43,0xcf,0x53,0xea,0x0d,0x6f,0x14,0x52,0x18,0xf2,0xc9};
    static int          borrow87         = 0;
    mpz_from_bytes(minuend, minuend87, 4);
    mpz_from_bytes(subtrahend, subtrahend87, 4);
    borrow = mpz_sub_borrow(sum, minuend, subtrahend, 0, 4);
    mpz_to_bytes(differencedata, sum, 4);
    if (std::memcmp(sum87, differencedata, 32) != 0 || borrow87 != borrow)
    {
        throw std::runtime_error("err in x64::mpz_sub_borrow");
    }

    static std::uint8_t minuend88[32]    = {0x32,0x42,0xb1,0xff,0x3f,0xb4,0x3f,0x23,0x18,0x2a,0x27,0x5e,0xff,0x17,0x81,0xa9,0xd4,0xd8,0xdd,0x62,0x84,0x10,0x7f,0xf4,0x0d,0xa2,0x86,0x60,0x8e,0x07,0x99,0x9f};
    static std::uint8_t subtrahend88[32] = {0x6d,0x43,0x51,0x57,0xad,0x72,0x08,0xe8,0xb1,0xc0,0x7a,0xc9,0x7d,0x4b,0xad,0x0a,0x8c,0x3b,0x9c,0x69,0x5d,0x02,0x38,0x67,0xb4,0xe1,0x5f,0xf4,0x4f,0x2e,0x03,0x42};
    static std::uint8_t sum88[32]        = {0xc4,0xff,0x60,0xa7,0x92,0x42,0x36,0x3a,0x66,0x69,0xac,0x95,0x81,0xcb,0xd4,0x9f,0x48,0x9d,0x40,0xf9,0x27,0x0e,0x47,0x8c,0x58,0xc1,0x26,0x6c,0x3e,0xd9,0x96,0x5d};
    static int          borrow88         = -1;
    mpz_from_bytes(minuend, minuend88, 4);
    mpz_from_bytes(subtrahend, subtrahend88, 4);
    borrow = mpz_sub_borrow(sum, minuend, subtrahend, 0, 4);
    mpz_to_bytes(differencedata, sum, 4);
    if (std::memcmp(sum88, differencedata, 32) != 0 || borrow88 != borrow)
    {
        throw std::runtime_error("err in x64::mpz_sub_borrow");
    }

    static std::uint8_t minuend89[32]    = {0x57,0x60,0x33,0xb1,0xf8,0x4c,0x7a,0xca,0x56,0xd2,0xe4,0x55,0xd5,0x53,0x9f,0x53,0x61,0x7d,0xe1,0xb6,0xca,0xab,0xe1,0x64,0xf8,0xd7,0xf5,0xf6,0x75,0x56,0xdc,0x9d};
    static std::uint8_t subtrahend89[32] = {0x62,0x2a,0x79,0xe7,0x68,0x2e,0xca,0xdf,0x76,0x76,0x5b,0x02,0x27,0x23,0xa0,0xd3,0xd5,0x81,0xe5,0x72,0x12,0x0c,0x5c,0xb1,0xa3,0x77,0xf0,0x1e,0x30,0x87,0xc8,0x84};
    static std::uint8_t sum89[32]        = {0xf5,0x35,0xb9,0xca,0x90,0x1d,0xaf,0xea,0xe0,0x5c,0x89,0x53,0xae,0x2f,0xfe,0x7f,0x8b,0xfb,0xfc,0x44,0xb8,0x9f,0x84,0xb3,0x55,0x60,0x05,0xd8,0x44,0xcf,0x14,0x19};
    static int          borrow89         = -1;
    mpz_from_bytes(minuend, minuend89, 4);
    mpz_from_bytes(subtrahend, subtrahend89, 4);
    borrow = mpz_sub_borrow(sum, minuend, subtrahend, 0, 4);
    mpz_to_bytes(differencedata, sum, 4);
    if (std::memcmp(sum89, differencedata, 32) != 0 || borrow89 != borrow)
    {
        throw std::runtime_error("err in x64::mpz_sub_borrow");
    }

    static std::uint8_t minuend90[32]    = {0x24,0xf7,0x5e,0x69,0xf3,0xc5,0xe8,0x4f,0x9c,0x47,0x9b,0x23,0xe5,0x9c,0x90,0x95,0xf6,0x02,0x68,0x27,0x51,0x03,0x36,0xbf,0x2a,0x1f,0x96,0xaf,0x7b,0xb4,0xa0,0xb1};
    static std::uint8_t subtrahend90[32] = {0xde,0x5f,0x44,0xc5,0xe2,0x72,0x6a,0xf5,0x6d,0x73,0xb4,0x72,0x7c,0xe4,0x08,0xb1,0x67,0x8a,0x75,0x21,0x95,0xab,0x6f,0x77,0xff,0x63,0xa8,0x5c,0x67,0xac,0xbd,0x07};
    static std::uint8_t sum90[32]        = {0x46,0x98,0x19,0xa4,0x11,0x53,0x7d,0x5a,0x2e,0xd3,0xe6,0xb1,0x68,0xb8,0x87,0xe4,0x8e,0x77,0xf3,0x05,0xbb,0x57,0xc7,0x47,0x2a,0xbb,0xee,0x53,0x14,0x07,0xe3,0xaa};
    static int          borrow90         = -1;
    mpz_from_bytes(minuend, minuend90, 4);
    mpz_from_bytes(subtrahend, subtrahend90, 4);
    borrow = mpz_sub_borrow(sum, minuend, subtrahend, 0, 4);
    mpz_to_bytes(differencedata, sum, 4);
    if (std::memcmp(sum90, differencedata, 32) != 0 || borrow90 != borrow)
    {
        throw std::runtime_error("err in x64::mpz_sub_borrow");
    }

    static std::uint8_t minuend91[32]    = {0x28,0x0c,0xc3,0x05,0xa5,0x03,0x5b,0x63,0xa6,0xe6,0x30,0xfe,0xb5,0x8f,0x31,0xfa,0x9b,0x9a,0x6f,0xc4,0x1c,0x54,0x7d,0xb2,0xce,0x7f,0xa7,0x5e,0x80,0xff,0x12,0x0f};
    static std::uint8_t subtrahend91[32] = {0x21,0xfd,0x64,0xc7,0xb5,0x71,0x36,0xe1,0xde,0xe0,0x13,0x55,0x0e,0x8a,0xaa,0xe0,0xd1,0x9c,0x84,0xf8,0x23,0xf5,0x55,0x74,0x8f,0xf6,0x42,0xdf,0xb0,0x80,0x01,0xf4};
    static std::uint8_t sum91[32]        = {0x06,0x0f,0x5e,0x3d,0xef,0x92,0x24,0x81,0xc8,0x06,0x1d,0xa9,0xa7,0x04,0x87,0x19,0xc9,0xfd,0xea,0xcb,0xf8,0x5f,0x28,0x3e,0x3e,0x89,0x64,0x7e,0xd0,0x7f,0x10,0x1b};
    static int          borrow91         = 0;
    mpz_from_bytes(minuend, minuend91, 4);
    mpz_from_bytes(subtrahend, subtrahend91, 4);
    borrow = mpz_sub_borrow(sum, minuend, subtrahend, 0, 4);
    mpz_to_bytes(differencedata, sum, 4);
    if (std::memcmp(sum91, differencedata, 32) != 0 || borrow91 != borrow)
    {
        throw std::runtime_error("err in x64::mpz_sub_borrow");
    }

    static std::uint8_t minuend92[32]    = {0x0a,0x62,0x5e,0xe6,0xa4,0x85,0x30,0xb7,0xf2,0x8c,0xd6,0x1c,0xdf,0x32,0xba,0xb0,0xec,0xd8,0x83,0x8f,0x0b,0x7f,0xfb,0x98,0xa0,0x31,0xca,0xac,0xfc,0xa3,0xe8,0x46};
    static std::uint8_t subtrahend92[32] = {0x12,0xbc,0x5b,0x80,0xef,0x1f,0x35,0xf0,0x91,0x44,0xbe,0xea,0x50,0xb2,0x44,0x77,0xca,0x0f,0x88,0x49,0x1f,0x81,0x5d,0xcb,0x50,0x8a,0xf9,0xec,0x16,0xc1,0x7b,0xc2};
    static std::uint8_t sum92[32]        = {0xf7,0xa6,0x03,0x65,0xb5,0x65,0xfa,0xc7,0x61,0x48,0x17,0x32,0x8e,0x80,0x76,0x39,0x22,0xc8,0xfb,0x45,0xeb,0xfe,0x9d,0xcd,0x4f,0xa6,0xd0,0xc0,0xe5,0xe2,0x6c,0x84};
    static int          borrow92         = -1;
    mpz_from_bytes(minuend, minuend92, 4);
    mpz_from_bytes(subtrahend, subtrahend92, 4);
    borrow = mpz_sub_borrow(sum, minuend, subtrahend, 0, 4);
    mpz_to_bytes(differencedata, sum, 4);
    if (std::memcmp(sum92, differencedata, 32) != 0 || borrow92 != borrow)
    {
        throw std::runtime_error("err in x64::mpz_sub_borrow");
    }

    static std::uint8_t minuend93[32]    = {0x2f,0xd4,0xde,0xd1,0x9b,0xf9,0x03,0xbc,0xf1,0xc2,0x81,0x9c,0x58,0xd9,0x8c,0x91,0x13,0x99,0x0b,0xbf,0xc2,0x99,0x91,0x5c,0x68,0x75,0x4f,0x77,0xb6,0x5b,0xe0,0x6a};
    static std::uint8_t subtrahend93[32] = {0x72,0x41,0xbd,0x9a,0xa5,0xd0,0x87,0x35,0x34,0xb2,0xd5,0xad,0x19,0x33,0x5e,0xbf,0x6f,0x57,0xb7,0xe8,0xef,0xbd,0x10,0x57,0x5d,0x13,0xf4,0x87,0x1d,0x1b,0x42,0x02};
    static std::uint8_t sum93[32]        = {0xbd,0x93,0x21,0x36,0xf6,0x28,0x7c,0x87,0xbd,0x0f,0xab,0xef,0x3f,0xa6,0x2d,0xd1,0xa4,0x41,0x53,0xd6,0xd2,0xdc,0x81,0x05,0x0b,0x61,0x5a,0xf0,0x99,0x40,0x9e,0x68};
    static int          borrow93         = -1;
    mpz_from_bytes(minuend, minuend93, 4);
    mpz_from_bytes(subtrahend, subtrahend93, 4);
    borrow = mpz_sub_borrow(sum, minuend, subtrahend, 0, 4);
    mpz_to_bytes(differencedata, sum, 4);
    if (std::memcmp(sum93, differencedata, 32) != 0 || borrow93 != borrow)
    {
        throw std::runtime_error("err in x64::mpz_sub_borrow");
    }

    static std::uint8_t minuend94[32]    = {0xa5,0x8b,0xed,0x25,0x1a,0xd8,0x34,0xf8,0x1b,0xb1,0x2e,0xd2,0x50,0xeb,0xcb,0xfe,0x54,0x94,0x1e,0x99,0x29,0x78,0xc2,0x0d,0x31,0x74,0xa5,0xf3,0x4b,0xbc,0x71,0x36};
    static std::uint8_t subtrahend94[32] = {0x53,0x9b,0x46,0xcd,0xfc,0xfc,0x78,0x2e,0xbf,0x5d,0xd2,0x92,0x40,0x7d,0x9a,0xa6,0x7e,0xea,0x07,0x5c,0x82,0x7e,0x61,0x3b,0x41,0x3a,0x48,0xa4,0xeb,0x75,0x41,0xd7};
    static std::uint8_t sum94[32]        = {0x51,0xf0,0xa6,0x57,0x1d,0xdb,0xbc,0xc9,0x5c,0x53,0x5c,0x40,0x10,0x6e,0x31,0x57,0xd5,0xaa,0x17,0x3c,0xa6,0xfa,0x60,0xd1,0xf0,0x3a,0x5d,0x4e,0x60,0x47,0x2f,0x5f};
    static int          borrow94         = 0;
    mpz_from_bytes(minuend, minuend94, 4);
    mpz_from_bytes(subtrahend, subtrahend94, 4);
    borrow = mpz_sub_borrow(sum, minuend, subtrahend, 0, 4);
    mpz_to_bytes(differencedata, sum, 4);
    if (std::memcmp(sum94, differencedata, 32) != 0 || borrow94 != borrow)
    {
        throw std::runtime_error("err in x64::mpz_sub_borrow");
    }

    static std::uint8_t minuend95[32]    = {0xed,0xd4,0xbb,0xf7,0x02,0x02,0xd4,0xa6,0x39,0xf7,0xea,0xef,0x3e,0x09,0x38,0x96,0x45,0x10,0xbb,0xd4,0x4f,0x82,0x0c,0x9f,0x3d,0x53,0x1f,0x0a,0x85,0x05,0x2e,0x7c};
    static std::uint8_t subtrahend95[32] = {0x40,0xa1,0xa3,0xa1,0x62,0x8f,0xdc,0xb1,0x5b,0xf3,0x58,0xdf,0xa7,0x53,0x8d,0x45,0xbe,0x97,0x26,0xfb,0x5c,0x0d,0x8d,0x4d,0xdf,0xee,0x59,0x65,0x6e,0x76,0x5b,0x89};
    static std::uint8_t sum95[32]        = {0xad,0x33,0x18,0x55,0x9f,0x72,0xf7,0xf4,0xde,0x04,0x92,0x0f,0x96,0xb5,0xab,0x50,0x86,0x79,0x94,0xd8,0xf3,0x74,0x7f,0x51,0x5d,0x64,0xc5,0xa5,0x16,0x8e,0xd2,0xf3};
    static int          borrow95         = 0;
    mpz_from_bytes(minuend, minuend95, 4);
    mpz_from_bytes(subtrahend, subtrahend95, 4);
    borrow = mpz_sub_borrow(sum, minuend, subtrahend, 0, 4);
    mpz_to_bytes(differencedata, sum, 4);
    if (std::memcmp(sum95, differencedata, 32) != 0 || borrow95 != borrow)
    {
        throw std::runtime_error("err in x64::mpz_sub_borrow");
    }

    static std::uint8_t minuend96[32]    = {0xb1,0x29,0x65,0x0c,0xfa,0x6c,0xd6,0x4b,0x49,0xc0,0xa8,0x4e,0xff,0x20,0xbd,0xa3,0xe7,0x97,0x74,0x94,0x67,0x5a,0x0d,0x1c,0x04,0x61,0xa4,0xe3,0x94,0xcb,0x08,0xdd};
    static std::uint8_t subtrahend96[32] = {0x6e,0xf0,0x9d,0xf0,0x96,0xf2,0x0c,0xf3,0xc6,0x2c,0x7a,0xba,0xb5,0x78,0xa9,0xc4,0xb0,0xc2,0xc2,0x83,0xfb,0x8c,0x21,0x84,0x4e,0xe9,0xae,0x52,0x3d,0x61,0xd5,0x13};
    static std::uint8_t sum96[32]        = {0x42,0x38,0xc7,0x1c,0x63,0x7a,0xc9,0x57,0x83,0x94,0x2d,0x94,0x49,0xa8,0x13,0xdf,0x36,0xd4,0xb2,0x10,0x6b,0xcd,0xeb,0x97,0xb5,0x77,0xf6,0x91,0x57,0x69,0x33,0xca};
    static int          borrow96         = 0;
    mpz_from_bytes(minuend, minuend96, 4);
    mpz_from_bytes(subtrahend, subtrahend96, 4);
    borrow = mpz_sub_borrow(sum, minuend, subtrahend, 0, 4);
    mpz_to_bytes(differencedata, sum, 4);
    if (std::memcmp(sum96, differencedata, 32) != 0 || borrow96 != borrow)
    {
        throw std::runtime_error("err in x64::mpz_sub_borrow");
    }

    static std::uint8_t minuend97[32]    = {0x51,0x59,0x3d,0x79,0x3c,0xb7,0x21,0x8e,0x66,0x00,0x9b,0xf5,0xa5,0xad,0xfa,0x7b,0x5b,0xe5,0x06,0x61,0x22,0xc9,0x97,0x46,0xb5,0x9e,0xd0,0x83,0x99,0x8f,0x14,0x50};
    static std::uint8_t subtrahend97[32] = {0x09,0x2c,0x8f,0xfa,0x6d,0xdc,0x3e,0xc0,0xe5,0x89,0x5d,0x56,0x9d,0xb2,0xa4,0x7d,0x16,0x52,0x3d,0xdd,0x69,0x29,0x67,0x09,0x0b,0x15,0xc2,0x40,0xac,0x96,0x32,0x18};
    static std::uint8_t sum97[32]        = {0x48,0x2c,0xad,0x7e,0xce,0xda,0xe2,0xcd,0x80,0x77,0x3e,0x9f,0x07,0xfb,0x55,0xfe,0x45,0x92,0xc8,0x83,0xb9,0xa0,0x30,0x3d,0xaa,0x89,0x0e,0x42,0xec,0xf8,0xe2,0x38};
    static int          borrow97         = 0;
    mpz_from_bytes(minuend, minuend97, 4);
    mpz_from_bytes(subtrahend, subtrahend97, 4);
    borrow = mpz_sub_borrow(sum, minuend, subtrahend, 0, 4);
    mpz_to_bytes(differencedata, sum, 4);
    if (std::memcmp(sum97, differencedata, 32) != 0 || borrow97 != borrow)
    {
        throw std::runtime_error("err in x64::mpz_sub_borrow");
    }

    static std::uint8_t minuend98[32]    = {0x8e,0xd7,0xff,0xc6,0xaf,0x1f,0xba,0x04,0x4d,0x39,0x7d,0x0a,0x2a,0xc1,0xc9,0x8e,0xbe,0xc4,0x96,0x2e,0x3f,0xaf,0x74,0x79,0x3c,0x6a,0x47,0xed,0x35,0xf9,0x74,0x6c};
    static std::uint8_t subtrahend98[32] = {0xd9,0xbd,0xa3,0x12,0x5b,0x7d,0x2c,0xb3,0xec,0xcc,0x10,0x70,0xd9,0x7d,0x3e,0xba,0xf0,0xec,0xe6,0x24,0xce,0xe6,0xe9,0xd4,0xbe,0x66,0xf9,0x2b,0xe3,0x33,0x2a,0x08};
    static std::uint8_t sum98[32]        = {0xb5,0x1a,0x5c,0xb4,0x53,0xa2,0x8d,0x50,0x60,0x6d,0x6c,0x99,0x51,0x44,0x8a,0xd3,0xcd,0xd7,0xb0,0x09,0x70,0xc8,0x8a,0xa4,0x7e,0x03,0x4e,0xc1,0x52,0xc6,0x4a,0x64};
    static int          borrow98         = -1;
    mpz_from_bytes(minuend, minuend98, 4);
    mpz_from_bytes(subtrahend, subtrahend98, 4);
    borrow = mpz_sub_borrow(sum, minuend, subtrahend, 0, 4);
    mpz_to_bytes(differencedata, sum, 4);
    if (std::memcmp(sum98, differencedata, 32) != 0 || borrow98 != borrow)
    {
        throw std::runtime_error("err in x64::mpz_sub_borrow");
    }

    static std::uint8_t minuend99[32]    = {0xd9,0xbb,0x16,0x55,0x00,0xa7,0x06,0x49,0x89,0xd9,0xca,0x98,0xd6,0x0a,0x20,0x30,0x37,0xf6,0x14,0x00,0x27,0x14,0xc7,0xa5,0xc1,0xfa,0xda,0x94,0x30,0xc1,0x2a,0x91};
    static std::uint8_t subtrahend99[32] = {0x9e,0x43,0x9f,0xec,0x26,0x42,0xd1,0x82,0x75,0x6b,0xcd,0x97,0x34,0x96,0x17,0x6c,0x6c,0xe3,0x4b,0xbe,0xe9,0x24,0x61,0x34,0xeb,0xfa,0x6c,0x1b,0xea,0x27,0x0f,0xe6};
    static std::uint8_t sum99[32]        = {0x3b,0x77,0x76,0x68,0xda,0x64,0x34,0xc7,0x14,0x6d,0xfd,0x01,0xa1,0x74,0x08,0xc3,0xcb,0x12,0xc8,0x41,0x3d,0xf0,0x66,0x70,0xd6,0x00,0x6e,0x78,0x46,0x9a,0x1a,0xab};
    static int          borrow99         = 0;
    mpz_from_bytes(minuend, minuend99, 4);
    mpz_from_bytes(subtrahend, subtrahend99, 4);
    borrow = mpz_sub_borrow(sum, minuend, subtrahend, 0, 4);
    mpz_to_bytes(differencedata, sum, 4);
    if (std::memcmp(sum99, differencedata, 32) != 0 || borrow99 != borrow)
    {
        throw std::runtime_error("err in x64::mpz_sub_borrow");
    }
}
#else
void test_mpz_x64_sub_borrow()
{
}
#endif